diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-12-17 10:50:11 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-12-17 10:50:11 +0000 |
commit | 22d39ae5b5cd6db62af087f3dc64ee7b4566ca0a (patch) | |
tree | 17d434cb03c21a0cd7b4b21db84527660941f6ad /fetchmail.c | |
parent | 2f22276496550d1b86e7c5ee48ff26c746cfe40d (diff) | |
download | fetchmail-22d39ae5b5cd6db62af087f3dc64ee7b4566ca0a.tar.gz fetchmail-22d39ae5b5cd6db62af087f3dc64ee7b4566ca0a.tar.bz2 fetchmail-22d39ae5b5cd6db62af087f3dc64ee7b4566ca0a.zip |
SIGHUP -> SIGUSR1.
svn path=/trunk/; revision=647
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fetchmail.c b/fetchmail.c index 6c18dedb..59b59a01 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -252,7 +252,7 @@ int main (int argc, char **argv) pid); return(PS_EXCLUDE); } - else if (kill(pid, SIGHUP) == 0) + else if (kill(pid, SIGUSR1) == 0) { fprintf(stderr, "fetchmail: background fetchmail at %d awakened.\n", @@ -263,7 +263,7 @@ int main (int argc, char **argv) { /* * Should never happen -- possible only if a background fetchmail - * croaks after the first kill probe above but before the SIGHUP + * croaks after the first kill probe above but before the SIGUSR1 * transmission. */ fprintf(stderr, @@ -312,7 +312,7 @@ int main (int argc, char **argv) * side effect of interrupting any sleep that may be going on, * forcing fetchmail to re-poll its hosts. */ - signal(SIGHUP, donothing); + signal(SIGUSR1, donothing); /* here's the exclusion lock */ if ( (lockfp = fopen(lockfile,"w")) != NULL ) { @@ -426,8 +426,8 @@ int main (int argc, char **argv) setitimer(ITIMER_REAL,&ntimeout,NULL); signal(SIGALRM, donothing); pause(); - if (lastsig == SIGHUP) - (void) error(0, 0, "awakened by SIGHUP"); + if (lastsig == SIGUSR1) + (void) error(0, 0, "awakened by SIGUSR1"); } if (outlevel == O_VERBOSE) |