1RAISE(3)                   Linux Programmer's Manual                  RAISE(3)
2
3
4

NAME

6       raise - send a signal to the caller
7

SYNOPSIS

9       #include <signal.h>
10
11       int raise(int sig);
12

DESCRIPTION

14       The  raise()  function sends a signal to the calling process or thread.
15       In a single-threaded program it is equivalent to
16
17           kill(getpid(), sig);
18
19       In a multithreaded program it is equivalent to
20
21           pthread_kill(pthread_self(), sig);
22
23       If the signal causes a handler to be called, raise() will  only  return
24       after the signal handler has returned.
25

RETURN VALUE

27       raise() returns 0 on success, and nonzero for failure.
28

CONFORMING TO

30       C89, C99, POSIX.1-2001.
31

SEE ALSO

33       getpid(2), kill(2), sigaction(2), signal(2), pthread_kill(3), signal(7)
34

COLOPHON

36       This  page  is  part of release 3.25 of the Linux man-pages project.  A
37       description of the project, and information about reporting  bugs,  can
38       be found at http://www.kernel.org/doc/man-pages/.
39
40
41
42GNU                               2008-10-17                          RAISE(3)
Impressum