]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3316 --resolve you should attach git diffs
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 26 May 2011 16:30:53 +0000 (11:30 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 26 May 2011 16:30:59 +0000 (11:30 -0500)
src/mod/formats/mod_shell_stream/mod_shell_stream.c

index 57d4029232013d95b33ac9af49364c61d8887c4d..11b5b1024111e2fa4927c2638535b09fb8e1fef2 100644 (file)
@@ -29,6 +29,7 @@
  *
  */
 #include <switch.h>
+#include <sys/wait.h>
 
 #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]);