c_reset_handler - Resets the signal handler to its original state for the specified signal

SYNTAX

#include "worgen.h"
int c_reset_handler
(
   int signo,                    /* I: signal to reset */
   struct sigaction *signal_act  /* I: specifies the action previously
                                       associated with signal so it can be
                                       restored */
)

PARAMETERS

signo (input, int)

Integer value of the signal to be reset.

sigaction (input, struct sigaction *)

Sigaction structure that specifies the previous state of the signal so that it can be reset to that state.

DESCRIPTION

The c_reset_handler() routine is used to reset the specified signal to its previous state. E_SUCC is returned if signal handler was successfully reset. E_FAIL is returned if an error occurred resetting the signal handler.

RETURN VALUE

c_reset_handler() returns

     E_SUCC (0)  --> successful completion
     E_FAIL (-1) --> operation failed