you are right....
now it's work perfect. 
Thanks a lot!

20.02.2016, 19:33, "Roberto De Ioris" <[email protected]>:
>>  I pushed plugin to github:
>>  https://github.com/m-garanin/uwsgi_remux_plugin/blob/master/remuxlib.c#L172
>>
>>  or here:
>>  ///
>>  int remux_cmd(char* cmd, char *in_filename, char *out_filename){
>>    extern char **environ;
>>    int status;
>>
>>    pid_t pid;
>>    char* args[3];
>>    args[0] = cmd;
>>    args[1] = in_filename;
>>    args[2] = out_filename;
>>    args[3] = NULL;
>>
>>    status = posix_spawn(&pid, cmd, NULL, NULL, args, environ);
>>    waitpid(pid, &status, 0);
>>
>>    return 0;
>>  }
>
> check for the off by one error, you declare 3-items array but you set 4
>
> https://github.com/m-garanin/uwsgi_remux_plugin/blob/master/remuxlib.c#L183
>
> --
> Roberto De Ioris
> http://unbit.com
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to