wait (taskid?, options?)
One of three possibilities:
A list of four items:
This function combines and simplifies the C functions wait and waitpid in a single function. If taskid is provided, then the function acts as waitpid, and will not return until the given child task has died.
The WNOHANG option allows the calling process to continue if the status of specified child process is not immediately available. The WUNTRACED option allows the calling process to return if the child process has stopped and its status has not been reported. Both of these can be specified using the OR (||) operator.
Copyright © 1995-2012 by Cogent Real-Time Systems, Inc. All rights reserved.