tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bmake signal safe



Hi,

exit() isn't listed by posix as being signal safe.
This causes grief on QNX if the signal is delivered
at the wrong time.  Any objections to the attached?

Regards,

-seanb
Index: devel/bmake/files/compat.c
===================================================================
RCS file: /cvsroot/pkgsrc/devel/bmake/files/compat.c,v
retrieving revision 1.9
diff -u -r1.9 compat.c
--- devel/bmake/files/compat.c  18 Jun 2011 22:39:46 -0000      1.9
+++ devel/bmake/files/compat.c  25 Apr 2012 15:09:48 -0000
@@ -183,7 +183,7 @@
        }
 
     }
-    exit(signo);
+    _exit(signo);
 }
 
 /*-


Home | Main Index | Thread Index | Old Index