summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr/lpd/lpd.c
diff options
context:
space:
mode:
authorGarance A Drosehn <gad@FreeBSD.org>2001-07-14 21:49:17 +0000
committerGarance A Drosehn <gad@FreeBSD.org>2001-07-14 21:49:17 +0000
commitbfb9fa63fcd7c5ca2822d5ae956fc02e4ed5cf0d (patch)
treebb327040747eb9a7643cdade0e08f85a884794a1 /usr.sbin/lpr/lpd/lpd.c
parentce11a18f0ed0580d3b44067961c8db0718a2e708 (diff)
Notes
Diffstat (limited to 'usr.sbin/lpr/lpd/lpd.c')
-rw-r--r--usr.sbin/lpr/lpd/lpd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c
index 16e8796b43f0a..866ab435315e7 100644
--- a/usr.sbin/lpr/lpd/lpd.c
+++ b/usr.sbin/lpr/lpd/lpd.c
@@ -367,7 +367,12 @@ main(int argc, char **argv)
continue;
}
if (fork() == 0) {
- signal(SIGCHLD, SIG_IGN);
+ /*
+ * Note that printjob() also plays around with
+ * signal-handling routines, and may need to be
+ * changed when making changes to signal-handling.
+ */
+ signal(SIGCHLD, SIG_DFL);
signal(SIGHUP, SIG_IGN);
signal(SIGINT, SIG_IGN);
signal(SIGQUIT, SIG_IGN);