diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-10-02 06:51:50 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-10-02 06:51:50 +0000 |
commit | 5858b0f0fdcc8c3e53139bf50214ba36dd81620f (patch) | |
tree | 670b117c58fb0de32035646045de69b8b6f7c369 /sbin/routed/main.c | |
parent | 2d0181727eae9dd33e29514e34e5985fd08af1e5 (diff) |
update to the latest version from Sep 12.
Diffstat (limited to 'sbin/routed/main.c')
-rw-r--r-- | sbin/routed/main.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/sbin/routed/main.c b/sbin/routed/main.c index 55faf5d70dc..e1f06adf418 100644 --- a/sbin/routed/main.c +++ b/sbin/routed/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.3 1996/09/05 14:31:32 mickey Exp $ */ +/* $OpenBSD: main.c,v 1.4 1996/10/02 06:51:45 mickey Exp $ */ /* * Copyright (c) 1983, 1988, 1993 @@ -39,7 +39,7 @@ char copyright[] = #if !defined(lint) static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/5/93"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.3 1996/09/05 14:31:32 mickey Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.4 1996/10/02 06:51:45 mickey Exp $"; #endif #include "defs.h" @@ -250,6 +250,16 @@ usage: } + signal(SIGALRM, sigalrm); + if (!background) + signal(SIGHUP, sigterm); /* SIGHUP fatal during debugging */ + else + signal(SIGHUP, SIG_IGN); + signal(SIGTERM, sigterm); + signal(SIGINT, sigterm); + signal(SIGUSR1, sigtrace_on); + signal(SIGUSR2, sigtrace_off); + /* get into the background */ if (background) { #ifdef sgi @@ -307,13 +317,6 @@ usage: rdisc_timer = next_bcast; ifinit_timer.tv_usec = next_bcast.tv_usec; - signal(SIGALRM, sigalrm); - signal(SIGHUP, sigterm); - signal(SIGTERM, sigterm); - signal(SIGINT, sigterm); - signal(SIGUSR1, sigtrace_on); - signal(SIGUSR2, sigtrace_off); - /* Collect an initial view of the world by checking the interface * configuration and the kludge file. */ |