1RAISE(3) Linux Programmer's Manual RAISE(3)
2
3
4
6 raise - send a signal to the caller
7
9 #include <signal.h>
10
11 int raise(int sig);
12
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 return only
24 after the signal handler has returned.
25
27 raise() returns 0 on success, and nonzero for failure.
28
30 C89, C99, POSIX.1-2001.
31
33 Since version 2.3.3, glibc implements raise() by calling tgkill(2), if
34 the kernel supports that system call. Older glibc versions implemented
35 raise() using kill(2).
36
38 getpid(2), kill(2), sigaction(2), signal(2), pthread_kill(3), signal(7)
39
41 This page is part of release 3.53 of the Linux man-pages project. A
42 description of the project, and information about reporting bugs, can
43 be found at http://www.kernel.org/doc/man-pages/.
44
45
46
47GNU 2012-04-20 RAISE(3)