Run forms when a given process terminates.
Form to run when
The process to watch for termination. By default, this is the value of
Ensures that the
is present for the given process. When the process terminates, its cleanup forms are run. Cleanup forms can be functions of one argument (the process), or lists, in which case the
is applied to the process and the
of the list.
When adding cleanup forms, this function uses
to ensure that the form is only added once.
A process calls
each time a dependent object is added to a process. When the process terminates,
is called on all dependent objects.
(defun add-process-dependent (dependent)
(defun delete-process-dependent (process dependent)
(inform-dependent-of-dead-process dependent process))
LispWorks Reference Manual - 20 Jul 2006