Commit b1b81f92 b1b81f92104d9545a087748af91ffe8879fc833e by Sergey Poznyakoff

(pop3d_signal): Use pop3d_is_master().

1 parent 353d7ec3
...@@ -39,12 +39,13 @@ pop3d_sigchld (int signo) ...@@ -39,12 +39,13 @@ pop3d_sigchld (int signo)
39 RETSIGTYPE 39 RETSIGTYPE
40 pop3d_signal (int signo) 40 pop3d_signal (int signo)
41 { 41 {
42 syslog (LOG_CRIT, _("got signal %s"), strsignal(signo)); 42 syslog (LOG_CRIT, _("got signal %s"), strsignal (signo));
43
43 /* Master process. */ 44 /* Master process. */
44 if (!ofile) 45 if (pop3d_is_master ())
45 { 46 {
46 syslog (LOG_CRIT, _("MASTER: exiting on signal")); 47 syslog (LOG_CRIT, _("MASTER: exiting on signal"));
47 exit (EXIT_FAILURE); /* abort(); */ 48 exit (EXIT_FAILURE);
48 } 49 }
49 50
50 if (signo == SIGALRM) 51 if (signo == SIGALRM)
......