diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-04-16 22:54:36 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-04-16 22:54:36 -0700 |
commit | ada08e1b0c7d8d61dc59cadb5eefd665522d149a (patch) | |
tree | 1b8d9de95e9f4332c0e0a1e4cdba824bd5f4453c /txr.1 | |
parent | c5d0fdcd677e46b7536a47812e63a1460559fd1c (diff) | |
download | txr-ada08e1b0c7d8d61dc59cadb5eefd665522d149a.tar.gz txr-ada08e1b0c7d8d61dc59cadb5eefd665522d149a.tar.bz2 txr-ada08e1b0c7d8d61dc59cadb5eefd665522d149a.zip |
Adding exit* function which calls _exit.
* sysif.c (exit_star_wrap): New static function.
(sysif_init): Registered exit* intrinsic.
* txr.1: Documented exit*.
* tl.vim, txr.vim: Regenerated.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -24936,6 +24936,27 @@ fails, an exception of type .code file-error is thrown. +.coNP Function @ exit* +.synb +.mets (exit* << status ) +.syne +.desc +The +.code exit* +function terminates the entire process (running \*(TX image), specifying +the termination status to the operating system. The +.meta status +argument is treated exactly like that of the +.code exit +function. Unlike that function, this one exits the process immediately, +cleaning up only low-level operating system resources such as closing file +descriptors and releasing memory mappings, without performing user-space +cleanup. + +.code exit* +is implemented using a call to the POSIX function +.codn _exit . + .coNP Functions @ getpid and @ getppid .synb (getpid) |