sigignore()

change disposition of signal to SIG_IGN 

Function


SYNOPSIS

#include <signal.h>

int sigignore(int sig);


DESCRIPTION

The sigignore() function sets the disposition of sig to SIG_IGN.

If sigignore() is used to set the disposition of SIGCHLD to SIG_IGN, the child processes of the calling process does not create zombie processes when they terminate. If the calling process subsequently waits for its children, it blocks until all of its children terminate; it then returns a value of -1 with errno set to ECHILD.


PARAMETERS

sig 

Specifies the signal, which may be any signal except SIGKILL or SIGSTOP.


RETURN VALUES

If successful, sigignore() returns zero. On failure, it returns -1 and sets errno to one of the following values:

EINVAL 

sig is not a valid signal or is equal to SIGKILL or SIGSTOP.


CONFORMANCE

UNIX 98.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

api_intro

Functions:
kill(), pause(), sigaction(), sighold(), signal(), sigpause(), sigrelse(), sigset()


PTC MKS Toolkit 10.4 Documentation Build 39.