CINXE.COM
raise
<html> <head> <title>raise</title> <META NAME="KEYWORDS" CONTENT="raise"> </head> <body BGCOLOR="#ffffff" LINK="#0000ff" VLINK="#0000ff" ALINK="#0000ff" TEXT="#000000"> <center> <h1><b>raise</b></h1></center> <PRE> <STRONG><A HREF="/man3/RAISE">RAISE(3)</A></STRONG> Linux Programmer's Manual <STRONG><A HREF="/man3/RAISE">RAISE(3)</A></STRONG> NAME raise - send a signal to the caller SYNOPSIS #include <signal.h> int raise(int sig); DESCRIPTION The raise() function sends a signal to the calling process or thread. In a single-threaded program it is equivalent to kill(getpid(), sig); In a multithreaded program it is equivalent to pthread_kill(pthread_self(), sig); If the signal causes a handler to be called, raise() will return only after the signal handler has returned. RETURN VALUE raise() returns 0 on success, and nonzero for failure. ATTRIBUTES For an explanation of the terms used in this section, see at- <STRONG><A HREF="/man7/tributes">tributes(7)</A></STRONG>. +----------+---------------+---------+ |Interface | Attribute | Value | +----------+---------------+---------+ |raise() | Thread safety | MT-Safe | +----------+---------------+---------+ CONFORMING TO POSIX.1-2001, POSIX.1-2008, C89, C99. NOTES Since version 2.3.3, glibc implements raise() by calling <STRONG><A HREF="/man2/tgkill">tgkill(2)</A></STRONG>, if the kernel supports that system call. Older glibc versions implemented raise() using <STRONG><A HREF="/man2/kill">kill(2)</A></STRONG>. SEE ALSO <STRONG><A HREF="/man2/getpid">getpid(2)</A></STRONG>, <STRONG><A HREF="/man2/kill">kill(2)</A></STRONG>, <STRONG><A HREF="/man2/sigaction">sigaction(2)</A></STRONG>, <STRONG><A HREF="/man2/signal">signal(2)</A></STRONG>, <STRONG><A HREF="/man3/pthread_kill">pthread_kill(3)</A></STRONG>, <STRONG><A HREF="/man7/signal">signal(7)</A></STRONG> COLOPHON This page is part of release 5.05 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. GNU 2015-08-08 <STRONG><A HREF="/man3/RAISE">RAISE(3)</A></STRONG></PRE> <center> <h6>Man Pages Copyright Respective Owners. Site Copyright (C) 1994 - 2025 <a href="http://www.he.net">Hurricane Electric</a>. All Rights Reserved.</h6></center> </body> </html>