#include "las.h" #include "worgen.h"int c_unblock_cleanup
( const sigset_t *oldmask /* I: status of signal mask before SIGTERM was masked to be blocked */ )
Pointer to sigset_t variable that contains the status of the signal mask before SIGTERM was masked to be blocked. This value should be returned from c_block_cleanup().
The c_unblock_cleanup() routine is used to reset the SIGTERM signal to its original state prior to being blocked by c_block_cleanup(). The routine c_block_cleanup() is used to block the SIGTERM signal until the critical section of code has completed. E_SUCC is returned if the unblock was successful. E_FAIL is returned if an error occurred unblocking SIGTERM.
c_unblock_cleanup() returns
E_SUCC (0) --> successful completion E_FAIL (-1) --> operation failed