2 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
3 .\" and Copyright (C) 2008 Michael Kerrisk <mtk.manpages@gmail.com>
5 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
7 .\" Modified Sat Jul 24 18:40:56 1993 by Rik Faith (faith@cs.unc.edu)
8 .\" Modified 1995 by Mike Battersby (mib@deakin.edu.au)
10 .TH raise 3 (date) "Linux man-pages (unreleased)"
12 raise \- send a signal to the caller
15 .RI ( libc ", " \-lc )
18 .B #include <signal.h>
20 .BI "int raise(int " sig );
25 function sends a signal to the calling process or thread.
26 In a single-threaded program it is equivalent to
34 In a multithreaded program it is equivalent to
38 pthread_kill(pthread_self(), sig);
42 If the signal causes a handler to be called,
44 will return only after the signal handler has returned.
47 returns 0 on success, and nonzero for failure.
49 For an explanation of the terms used in this section, see
55 Interface Attribute Value
60 T} Thread safety MT-Safe
69 is implemented by calling
71 .\" 2.3.2 used the obsolete tkill(), if available.
72 if the kernel supports that system call.
73 Older glibc versions implemented