From: Ben Pfaff Date: Tue, 22 Jul 2008 20:26:03 +0000 (-0700) Subject: Add SIGALRM to blockable fatal signals. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85a31d495b3e6649a9c53dfeb42a41e82b5e68d1;p=openvswitch 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. --- 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;