commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r816073 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/signals.c
Date Thu, 17 Sep 2009 06:59:16 GMT
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;
 }
 



Mime
View raw message