[FFmpeg-cvslog] r13858 - trunk/ffserver.c
bcoudurier
subversion
Sun Jun 22 02:33:08 CEST 2008
Author: bcoudurier
Date: Sun Jun 22 02:33:08 2008
New Revision: 13858
Log:
fix open return check
Modified:
trunk/ffserver.c
Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c (original)
+++ trunk/ffserver.c Sun Jun 22 02:33:08 2008
@@ -392,12 +392,12 @@ static void start_children(FFStream *fee
if (!ffserver_debug) {
i = open("/dev/null", O_RDWR);
- if (i)
+ if (i != -1) {
dup2(i, 0);
- dup2(i, 1);
- dup2(i, 2);
- if (i)
+ dup2(i, 1);
+ dup2(i, 2);
close(i);
+ }
}
av_strlcpy(pathname, my_program_name, sizeof(pathname));
More information about the ffmpeg-cvslog
mailing list