From 85a31d495b3e6649a9c53dfeb42a41e82b5e68d1 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 22 Jul 2008 13:26:03 -0700 Subject: [PATCH] Add SIGALRM to blockable fatal signals. We use SIGALRM to limit runtime of dpctl and ofp-discover. There is no reason that we should not clean up after it in the same way as any other catchable signal. In particular, ofp-discover wants to restore network device flags on timeout. --- lib/fatal-signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fatal-signal.c b/lib/fatal-signal.c index 33bc5942..fe1f52b2 100644 --- a/lib/fatal-signal.c +++ b/lib/fatal-signal.c @@ -43,7 +43,7 @@ #include "util.h" /* Signals to catch. */ -static const int fatal_signals[] = { SIGTERM, SIGINT, SIGHUP }; +static const int fatal_signals[] = { SIGTERM, SIGINT, SIGHUP, SIGALRM }; /* Signals to catch as a sigset_t. */ static sigset_t fatal_signal_set; -- 2.30.2