/[projects]/smsdaemon/daemon.cpp
ViewVC logotype

Diff of /smsdaemon/daemon.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 158 by torben, Mon Dec 8 21:49:49 2008 UTC revision 190 by torben, Wed Dec 17 13:51:57 2008 UTC
# Line 74  void lookup_uid_values() Line 74  void lookup_uid_values()
74    
75  void daemonCleanup()  void daemonCleanup()
76  {  {
77          unlink( Common::instance()->pidfile.c_str() );          Common* cmn = Common::instance();
78            Logger::logMessage("Cleaning up daemon");
79            
80            seteuid(0);
81            setegid(0);
82            unlink( cmn->pidfile.c_str() );
83    
84  }  }
85    
86  void daemonize()  void daemonize()

Legend:
Removed from v.158  
changed lines
  Added in v.190

  ViewVC Help
Powered by ViewVC 1.1.20