diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2007-12-04 11:06:50 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2007-12-04 11:06:50 +0000 |
commit | dc1472d1d785c6dc8ad7c7f9c4ea79505fcac1a6 (patch) | |
tree | eabb21761efceffd827eebdbe6cea5559336eb2c /usr.sbin | |
parent | 8d0261375452763c30c54531f0b19240bdbca8f3 (diff) |
catch SIGQUIT too. ckuethe@ and henning@ ok.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ntpd/ntpd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/ntpd.c b/usr.sbin/ntpd/ntpd.c index be6fc793189..13f23ef5ecf 100644 --- a/usr.sbin/ntpd/ntpd.c +++ b/usr.sbin/ntpd/ntpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.c,v 1.53 2007/11/22 10:22:30 otto Exp $ */ +/* $OpenBSD: ntpd.c,v 1.54 2007/12/04 11:06:49 fgsch Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -56,6 +56,7 @@ sighdlr(int sig) switch (sig) { case SIGTERM: case SIGINT: + case SIGQUIT: quit = 1; break; case SIGCHLD: @@ -162,6 +163,7 @@ main(int argc, char *argv[]) signal(SIGTERM, sighdlr); signal(SIGINT, sighdlr); + signal(SIGQUIT, sighdlr); signal(SIGHUP, sighdlr); close(pipe_chld[1]); |