You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/09/17 08:59:16 UTC

svn commit: r816073 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/signals.c

Author: mturk
Date: Thu Sep 17 06:59:16 2009
New Revision: 816073

URL: http://svn.apache.org/viewvc?rev=816073&view=rev
Log:
Treat NULL as SIG_IGN

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/signals.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/signals.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/signals.c?rev=816073&r1=816072&r2=816073&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/signals.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/signals.c Thu Sep 17 06:59:16 2009
@@ -778,9 +778,11 @@
         return SIG_ERR;
     }
     orghandler = signal_handlers[signo];
-    if (func != SIG_GET)
-        signal_handlers[signo] = func;
-
+    if (func != SIG_GET) {
+        /* ###: Is this correct, NULL == SIG_IGN ?
+         */
+        signal_handlers[signo] = func ? func : SIG_IGN;
+    }
     return orghandler;
 }