Next: , Previous: , Up: linux   [Index]


7.3 Process termination status

The following bindings are exported by the (vicare linux) library.

Function: waitid idtype id options

Interface to the Linux specific C function waitid(), see the waitid() manual page for details. Wait for the termination of one or more child processes with finer control of waitpid. All the arguments must be fixnums. If successful: return an instance of structure struct-siginfo_t, else raise an exception.

Struct: struct-siginfo_t

Data structure used by waitid to report its result; it has the following fields:

si_pid si_uid si_signo si_status si_code

See the waitid() manual page for details.

Function: make-struct-siginfo_t pid uid signo status code
Function: struct-siginfo_t? obj
Function: struct-siginfo_t-si_pid
Function: struct-siginfo_t-si_uid
Function: struct-siginfo_t-si_signo
Function: struct-siginfo_t-si_status
Function: struct-siginfo_t-si_code

Constructor, predicate and field accessors for structures of type struct-siginfo_t.

The following functions accept as argument a fixnum representing the process termination status, for example the return value of system() or the status acquired by waitpid().

Function: WIFCONTINUED status

Interface to the Linux specific C macro WIFCONTINUED(). Return true if the process was resumed by delivery of SIGCONT.