mirror of https://git.ffmpeg.org/ffmpeg.git
fix open return check
Originally committed as revision 13858 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0679719d5b
commit
3296409d5c
|
@ -392,12 +392,12 @@ static void start_children(FFStream *feed)
|
|||
|
||||
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));
|
||||
|
|
Loading…
Reference in New Issue