Changeset 4889 for branches/erijo-dev

Show
Ignore:
Timestamp:
04/12/07 04:52:53 (20 months ago)
Author:
erijo
Message:

Print a error if the daemon exits with exit code != 0

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/erijo-dev/licq/src/daemon.cpp

    r4884 r4889  
    128128  EventLoop.addFileDescriptor(Pipe.getFileDescriptor(), 
    129129                              TEventLoop::ACTION_READ_FD, this); 
    130   return EventLoop.run(); 
     130 
     131  const int ret = EventLoop.run(); 
     132  if (ret != 0) 
     133    Log.error("Daemon exited with non-zero exit code (%d)", ret); 
     134 
     135  return ret; 
    131136} 
    132137