/[mailutils]/mailutils/pop3d/signal.c
ViewVC logotype

Diff of /mailutils/pop3d/signal.c

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

revision 1.14 by gray, Mon Jan 6 14:48:39 2003 UTC revision 1.15 by gray, Fri Jan 31 15:03:27 2003 UTC
# Line 39  pop3d_sigchld (int signo) Line 39  pop3d_sigchld (int signo)
39  RETSIGTYPE  RETSIGTYPE
40  pop3d_signal (int signo)  pop3d_signal (int signo)
41  {  {
42      int code;
43      
44    syslog (LOG_CRIT, _("got signal %s"), strsignal (signo));    syslog (LOG_CRIT, _("got signal %s"), strsignal (signo));
45    
46    /* Master process.  */    /* Master process.  */
# Line 48  pop3d_signal (int signo) Line 50  pop3d_signal (int signo)
50         exit (EXIT_FAILURE);         exit (EXIT_FAILURE);
51      }      }
52    
53    if (signo == SIGALRM)    switch (signo)
54      pop3d_abquit (ERR_TIMEOUT);      {
55    pop3d_abquit (ERR_SIGNAL);      case SIGALRM:
56          code = ERR_TIMEOUT;
57          break;
58          
59        case SIGPIPE:
60          code = ERR_NO_OFILE;
61          break;
62          
63        default:
64          code = ERR_SIGNAL;
65        }
66      pop3d_abquit (code);
67  }  }

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26