mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-19 09:41:07 +02:00
changed execve to execv
This commit is contained in:
parent
cc1e4899cc
commit
6be685f21b
|
@ -329,7 +329,7 @@ ngx_rtmp_exec_run(ngx_rtmp_session_t *s, size_t n)
|
|||
args[n + 1] = ngx_rtmp_exec_prepare_arg(s, arg);
|
||||
}
|
||||
args[n + 1] = NULL;
|
||||
if (execve((char *)ec->cmd.data, args, environ) == -1) {
|
||||
if (execv((char *)ec->cmd.data, args) == -1) {
|
||||
exit(1);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue