]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-procmgmt-20070130
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 30 Jan 2007 12:07:18 +0000 (12:07 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 30 Jan 2007 12:07:18 +0000 (12:07 +0000)
Do not raise an exception if SIGQUIT is received prior to the
registration of the Shutdown handler

(cherry picked from commit b02c32b0692991636e06e1205ae0d07c9f15106b)

src/procmgmt/procmgmt_nt.c

index 8cfa2b53ca469993dc61663a90e9ac80275d0c79..83e9230522ff86be382c0236c84332e2452310fc 100644 (file)
@@ -141,13 +141,11 @@ DefaultActionHandler(int signo)
     case SIGHUP:
     case SIGINT:
     case SIGKILL:
+    case SIGQUIT:
     case SIGTERM:
-    case SIGUSR1:
-    case SIGUSR2:
        /* default action is "exit" */
        ExitProcess(PMGT_SIGSTATUS_ENCODE(signo));
        break;
-    case SIGQUIT:
     case SIGILL:
     case SIGABRT:
     case SIGFPE:
@@ -161,6 +159,8 @@ DefaultActionHandler(int signo)
        RaiseException((DWORD) PMGT_SIGSTATUS_ENCODE(signo),
                       EXCEPTION_NONCONTINUABLE, 0, NULL);
        break;
+    case SIGUSR1:
+    case SIGUSR2:
     case SIGCHLD:
        /* default action is "ignore" */
        break;