mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-29 06:22:00 -08:00
run directly external commands on unix, without using the shell
This commit is contained in:
parent
4750cc5a48
commit
5517a2b6a0
1 changed files with 1 additions and 1 deletions
2
utils.go
2
utils.go
|
|
@ -144,7 +144,7 @@ func startExternalCommand(cmdstr string, pathName string) (*exec.Cmd, error) {
|
|||
cmd = exec.Command(args[0], args[1:]...)
|
||||
|
||||
} else {
|
||||
cmd = exec.Command("/bin/sh", "-c", cmdstr)
|
||||
cmd = exec.Command("/bin/sh", "-c", "exec "+cmdstr)
|
||||
}
|
||||
|
||||
// variables are available through environment variables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue