Description Usage Arguments Details Value Note Author(s) References See Also Examples
Exit from a child process.
1 | exit(status = 0)
|
status |
Integer status flag. Use 0 for a normal exit. |
This function is a shallow warpper adound the Unix "\_exit" command,
and should be used instead of quit()
to exit from a process
created via fork
.
None.
The fork
command automatically sets up an on.exit
function that calls exit
before evaluating the slave
argument, so it is usually not necessary to directly call exit().
Gregory R. Warnes greg@warnes.net
"\_exit" man page
fork
, getpid
, wait
,
kill
, killall
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.