]> granicus.if.org Git - procps-ng/commitdiff
Fix for : procps states a bug is hit when receiving a signal (rhbz#871824, rhbz#441656)
authorJaromir Capik <jcapik@redhat.com>
Wed, 12 Dec 2012 11:02:52 +0000 (12:02 +0100)
committerCraig Small <csmall@enc.com.au>
Thu, 13 Dec 2012 10:37:58 +0000 (21:37 +1100)
Bug-Redhat: http://bugzilla.redhat.com/871824
Bug-Redhat: http://bugzilla.redhat.com/441656

ps/display.c

index cd0fb3282a593521b62fbff2ee713df8bd319fe7..85c50a10d2f71cf055908dcae6f842a20e6e4a60 100644 (file)
@@ -56,7 +56,14 @@ static void signal_handler(int signo){
     myname,
     procps_version
   );
-  catastrophic_failure(__FILE__, __LINE__, _("please report this bug"));
+  switch (signo) {
+    case SIGHUP:
+    case SIGUSR1:
+    case SIGUSR2:
+      exit(EXIT_FAILURE);
+    default:
+      catastrophic_failure(__FILE__, __LINE__, _("please report this bug"));
+  }
 }
 
 /////////////////////////////////////////////////////////////////////////////////////