(pop3d_signal): Use pop3d_is_master().
Showing
1 changed file
with
4 additions
and
3 deletions
... | @@ -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) | ... | ... |
-
Please register or sign in to post a comment