Back to index

courier  0.68.2
Functions | Variables
mysignal.c File Reference
#include <signal.h>

Go to the source code of this file.

Functions

static RETSIGTYPE trap (int signum)
void trap_signals ()
int release_signals ()

Variables

static int n

Function Documentation

int release_signals ( )

Definition at line 31 of file mysignal.c.

{
       signal(SIGTERM, SIG_DFL);
       signal(SIGINT, SIG_DFL);
       signal(SIGHUP, SIG_DFL);
       return (n);
}

Here is the caller graph for this function:

static RETSIGTYPE trap ( int  signum) [static]

Definition at line 15 of file mysignal.c.

{
       n=signum;
#if    RETSIGTYPE != void
       return (0);
#endif
}

Here is the caller graph for this function:

void trap_signals ( )

Definition at line 23 of file mysignal.c.

{
       n=0;
       signal(SIGTERM, trap);
       signal(SIGINT, trap);
       signal(SIGHUP, trap);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

int n [static]

Definition at line 13 of file mysignal.c.