Changeset 10227


Ignore:
Timestamp:
Feb 19, 2010, 5:25:58 AM (13 years ago)
Author:
charles
Message:

(trunk daemon) print a warning to stderr when tr_daemon() can't open /dev/null

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/daemon.c

    r10162 r10227  
    173173                int i;
    174174                int fd = open( "/dev/null", O_RDWR, 0 );
     175                if( fd < 0 )
     176                    fprintf( stderr, "unable to open /dev/null: %s\n", tr_strerror(errno) );
    175177                for( i=0; i<3; ++i ) {
    176178                    if( close( i ) )
Note: See TracChangeset for help on using the changeset viewer.