From: Anthony Minessale Date: Thu, 26 May 2011 16:30:53 +0000 (-0500) Subject: FS-3316 --resolve you should attach git diffs X-Git-Tag: v1.2-rc1~108^2~11^2~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89666f44b31bbfe051cbb46999b027d0d4d6e21f;p=thirdparty%2Ffreeswitch.git FS-3316 --resolve you should attach git diffs --- diff --git a/src/mod/formats/mod_shell_stream/mod_shell_stream.c b/src/mod/formats/mod_shell_stream/mod_shell_stream.c index 57d4029232..11b5b10241 100644 --- a/src/mod/formats/mod_shell_stream/mod_shell_stream.c +++ b/src/mod/formats/mod_shell_stream/mod_shell_stream.c @@ -29,6 +29,7 @@ * */ #include +#include #define MY_BUF_LEN 1024 * 32 #define MY_BLOCK_SIZE MY_BUF_LEN @@ -135,6 +136,8 @@ static switch_status_t shell_stream_file_open(switch_file_handle_t *handle, cons switch_cond_next(); } + wait(&(context->pid)); + goto end; } else { /* child */ close(context->fds[0]);