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

Diff of /smsdaemon/daemon.cpp

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

revision 26 by torben, Mon Jun 9 18:15:53 2008 UTC revision 86 by torben, Mon Jun 16 07:39:56 2008 UTC
# Line 77  void daemonize() Line 77  void daemonize()
77          /* first instance continues */          /* first instance continues */
78          sprintf(str, "%d\n", getpid() ); /* record pid to lockfile */          sprintf(str, "%d\n", getpid() ); /* record pid to lockfile */
79          write(lfp, str, strlen(str) );          write(lfp, str, strlen(str) );
80          signal(SIGCHLD, SIG_IGN); /* ignore child */          //signal(SIGCHLD, SIG_IGN); /* ignore child */
81          signal(SIGTSTP, SIG_IGN); /* ignore tty signals */          signal(SIGTSTP, SIG_IGN); /* ignore tty signals */
82          signal(SIGTTOU, SIG_IGN);          signal(SIGTTOU, SIG_IGN);
83          signal(SIGTTIN, SIG_IGN);          signal(SIGTTIN, SIG_IGN);

Legend:
Removed from v.26  
changed lines
  Added in v.86

  ViewVC Help
Powered by ViewVC 1.1.20