Next: posix signal, Previous: posix process, Up: posix [Index]
Interface to the C function waitpid()
, (libc)waitpid. Request status informations on a process or group
of processes knowing the identifier.
The fixnum pid selects the target of the request; the fixnum
options must be the logical OR (fxior
) of platform specific
constants specifying how to wait for the availability of the status.
Upon returning behave as follows:
WNOHANG
was used in options and no
child process it was waiting for exited: return #f
.
Interface to the C function wait()
, (libc)wait. Request status informations on any process or group of
processes. If successful return a fixnum representing the status; if an
error occurs: an exception is raised.
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
.
Interface to the C macro WIFEXITED()
, (libc)WIFEXITED. Return true if the process terminated normally with
exit()
.
Interface to the C macro WEXITSTATUS()
, (libc)WEXITSTATUS. If WIFEXITED
applied to
status would return true: return the low–order 8 bits from
the exit status, which is the process exit status selected with
exit()
.
Interface to the C macro WIFSIGNALED()
, (libc)WIFSIGNALED. Return true if the process terminated
because it received an interprocess signal which was not handled.
Interface to the C macro WTERMSIG()
, (libc)WTERMSIG. If WIFSIGNALED
applied to status would
return true: return the number of the interprocess signal that
terminated the process.
Interface to the C macro WCOREDUMP()
, (libc)WCOREDUMP. Return true if the process terminated and produced
a core dump.
Interface to the C macro WIFSTOPPED()
, (libc)WIFSTOPPED. Return true if the process is stopped.
Interface to the C macro WSTOPSIG()
, (libc)WSTOPSIG. If WIFSTOPPED
applied to status would
return true: return the number of the interprocess signal that caused
the process to stop.
Next: posix signal, Previous: posix process, Up: posix [Index]