Revision: 1046
http://svn.sourceforge.net/r-gregmisc/?rev=1046&view=rev
Author: warnes
Date: 2007-02-05 15:21:39 -0800 (Mon, 05 Feb 2007)
Log Message:
-----------
Add signal() to example for fork()
Modified Paths:
--------------
trunk/fork/man/fork.Rd
Modified: trunk/fork/man/fork.Rd
===================================================================
--- trunk/fork/man/fork.Rd 2007-02-05 23:21:13 UTC (rev 1045)
+++ trunk/fork/man/fork.Rd 2007-02-05 23:21:39 UTC (rev 1046)
@@ -162,10 +162,12 @@
close(con2)
}
+\dontrun{
# Important: if we aren't going to explicitly wait() for the child
# process to exit, we need to tell the OS that we are ignoring child
# process signals so it will let us die cleanly.
signal("SIGCHLD","ignore")
+}
# fork off the process
pid <- fork(recieve)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|