From ada08e1b0c7d8d61dc59cadb5eefd665522d149a Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 16 Apr 2015 22:54:36 -0700 Subject: 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. --- txr.1 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'txr.1') diff --git a/txr.1 b/txr.1 index f20b7eaf..8c4ccc07 100644 --- a/txr.1 +++ b/txr.1 @@ -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) -- cgit v1.2.3