Revision 3296409d

View differences:

ffserver.c
392 392

  
393 393
                if (!ffserver_debug) {
394 394
                    i = open("/dev/null", O_RDWR);
395
                    if (i)
395
                    if (i != -1) {
396 396
                        dup2(i, 0);
397
                    dup2(i, 1);
398
                    dup2(i, 2);
399
                    if (i)
397
                        dup2(i, 1);
398
                        dup2(i, 2);
400 399
                        close(i);
400
                    }
401 401
                }
402 402

  
403 403
                av_strlcpy(pathname, my_program_name, sizeof(pathname));

Also available in: Unified diff