Scieneer Common Lisp 1.3.9 online documentation Unix signals
sys:enable-interrupt signal handler [Function] Enable a signal handler. The signal should be a valid signal number or a keyword of the standard UNIX signal name. Note that the signal :sigpwr is used by the lisp implementation and is not available. The handler may be either:
- :default
- Restore the default behaviour for the signal.
- :ignore
- Attempt to ignore the signal.
- A function
- The function to be called to handle the signal. For synchronous signals, the handler is called within the thread causing the signal, and is called with three arguments: the signal number, a SAP pointing to the siginfo structure, and a SAP pointing to the signal context. For asynchronous signals the handler is called from a new thread dedicated to handling the signal, and is passed just one argument, the signal number.
sys:default-interrupt signal [Function] Restore the default behavior for the Unix signal.
sys:ignore-interrupt signal [Function] Attempt to ignore the Unix signal.
unix:unix-signal-name signal [Function] Return the name of the signal as a string. The signal should be a valid signal number or a keyword of the standard UNIX signal name.
unix:unix-signal-number signal [Function] Return the number of the given signal. The signal should be a valid signal number or a keyword of the standard UNIX signal name.
unix:unix-signal-synchronization signal [Function] Return the synchronization of the given signal. The signal should be a valid signal number or a keyword of the standard UNIX signal name. The synchronization which will be either:
- :sync
- A synchronous signal, such as a floating pointer exception, generated by a thread and delivered to the thread generating the signal.
- :async
- An asynchronous signal delivered to the process. A new thread will be created to handle each asynchronous signal received.
unix:unix-signal-description signal [Function] Return a string describing signal. The signal should be a valid signal number or a keyword of the standard UNIX signal name.
unix:unix-kill pid signal [Function] Send the signal to the process with process ID pid. The signal should be a valid signal number or a keyword of the standard UNIX signal name. Return t upon success, otherwise nil and an error number.
unix:unix-killpg pgrp signal [Function] Send the signal to the all the processes in process group pgrp. The signal should be a valid signal number or a keyword of the standard UNIX signal name. Return t upon success, otherwise nil and an error number.