diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-07-30 18:56:17 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-07-30 18:56:17 -0700 |
commit | b1acf6517d808242c6c46b09250925ff20861cc4 (patch) | |
tree | 67175dc4c16f8ee95b79043e2d35ce95879ba176 /txr.1 | |
parent | ff4d78c938128cd0572f6469425005d9019a7f38 (diff) | |
download | txr-b1acf6517d808242c6c46b09250925ff20861cc4.tar.gz txr-b1acf6517d808242c6c46b09250925ff20861cc4.tar.bz2 txr-b1acf6517d808242c6c46b09250925ff20861cc4.zip |
* eval.c (getpid_wrap, getppid_wrap): New static functions.
(eval_init): Registered getpid and getppid intrinsics.
* signal.c (kill_wrap): New static function.
(sig-init): Registered kill intrinsic function.
* txr.1: Documented getpid, gettpid and kill.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -14331,6 +14331,20 @@ This function retrieves the current working directory. If the underlying getcwd system call fails with an errno other than ERANGE, an exception will be thrown. +.SS Functions getpid and getppid + +.TP +Syntax: + + (getpid) + (getppid) + +.TP +Description: + +These functions retrieve the current proces ID and the parent process ID +respectively. They are wrappers for the POSIX functions getpid and getppid. + .SS Function daemon .TP @@ -14579,6 +14593,21 @@ Calls to the sig-check function may be inserted into CPU-intensive code that has no opportunity to be interrupted by signals, because it doesn't invoke any I/O functions. +.SS The kill function + +.TP +Syntax: + + (kill <process-id> [<signal>]) + +.TP +Description: + +The kill function is used for sending a signal to a process group or process. +It is a wrapper for the POSIX kill function. + +If the <signal> argument is omitted, it defaults to the same value as sig-term. + .SH UNIX SYSLOG On platforms where a Unix-like syslog API is available, TXR exports this |