Revision: 1064
http://svn.sourceforge.net/r-gregmisc/?rev=1064&view=rev
Author: warnes
Date: 2007-03-06 14:44:25 -0800 (Tue, 06 Mar 2007)
Log Message:
-----------
Add wrappers for C functions to control setting/restoring child
process signal handler.
Added Paths:
-----------
trunk/fork/R/handleSIGCLD.R
trunk/fork/R/restoreSIGCLD.R
Added: trunk/fork/R/handleSIGCLD.R
===================================================================
--- trunk/fork/R/handleSIGCLD.R (rev 0)
+++ trunk/fork/R/handleSIGCLD.R 2007-03-06 22:44:25 UTC (rev 1064)
@@ -0,0 +1,10 @@
+# setup a a 'dummy' SIGCLD hander to handle child process
+# notifications. Hopefully on both BSD and Sys5 derived systems, this
+# should cause child processes to exit and die cleanly, IE without
+# becoming zombies.
+
+handleSIGCLD <- function()
+ {
+ .C("R_install_sigcld_handler")
+ invisible(NULL)
+ }
Added: trunk/fork/R/restoreSIGCLD.R
===================================================================
--- trunk/fork/R/restoreSIGCLD.R (rev 0)
+++ trunk/fork/R/restoreSIGCLD.R 2007-03-06 22:44:25 UTC (rev 1064)
@@ -0,0 +1,6 @@
+# Restore the original SIGCLD hander. This reverses the action of 'handleSIGCLD'.
+restoreSIGCLD <- function()
+ {
+ .C("R_restore_sigcld_handler")
+ invisible(NULL)
+ }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|