[rtmpdump] r398 - trunk/rtmpsrv.c
hyc
subversion at mplayerhq.hu
Thu Mar 25 04:08:56 CET 2010
Author: hyc
Date: Thu Mar 25 04:08:55 2010
New Revision: 398
Log:
Child process must exit if exec failed. (exec should never
fail unless your PATH is messed up)
Modified:
trunk/rtmpsrv.c
Modified: trunk/rtmpsrv.c
==============================================================================
--- trunk/rtmpsrv.c Thu Mar 25 04:06:12 2010 (r397)
+++ trunk/rtmpsrv.c Thu Mar 25 04:08:55 2010 (r398)
@@ -348,7 +348,8 @@ spawn_dumper(int argc, AVal *av, char *c
argv[i][av[i].av_len] = '\0';
}
argv[i] = NULL;
- execvp(argv[0], argv);
+ if ((i = execvp(argv[0], argv)))
+ _exit(i);
}
#endif
}
More information about the rtmpdump
mailing list