The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

raise - send a signal to the executing process

 SYNOPSIS



#include <signal.h>

int raise(int sig);

 DESCRIPTION

The raise() function sends the signal sig to the executing thread.

The effect of the raise() function is equivalent to calling:


pthread_kill(pthread_self(), sig);

 RETURN VALUE

Upon successful completion, 0 is returned. Otherwise, a non-zero value is returned  and errno is set to indicate the error.

 ERRORS

The raise() function will fail if:
[EINVAL]
The value of the sig argument is an invalid signal number.

 EXAMPLES

None.

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

kill(), sigaction(), <signal.h>, <sys/types.h>.

DERIVATION

Derived from the ANSI C standard.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]