On Mon, 23 Feb 2015, Alexey Suslikov wrote:
> I modified chunk at
...
> to be
> 
> if (res > -1) {
>    ast_log(LOG_WARNING, "WIFCONTINUED = %d\n", WIFCONTINUED(status));
>    ast_log(LOG_WARNING, "WIFEXITED = %d\n", WIFEXITED(status));
>    ast_log(LOG_WARNING, "WIFSIGNALED = %d\n", WIFSIGNALED(status));
>    ast_log(LOG_WARNING, "WIFSTOPPED = %d\n", WIFSTOPPED(status));
> ...
> 
> and here is the result:
...
> 5.7
> -- Executing [XXXXXXXXXX@from-trunk:3] System("SIP/test-145-00000000",
> "/bin/pwd") in new stack
...
> [Feb 23 23:08:00] WARNING[-1][C-00000000]: asterisk.c:1137
> ast_safe_system: WIFSIGNALED = 1
> [Feb 23 23:08:00] WARNING[-1][C-00000000]: app_system.c:134
> system_exec_helper: Unable to execute '/bin/pwd'
> 
> Boom! Child signaled and never executed.
> 
> Any ideas?

What's WTERMSIG(status) return?


Philip

Reply via email to