raise - send a signal to the executing process
#include <signal.h>
The functionality described on this reference page is aligned with the ISO C standard. Any conflict between the requirements described here and the ISO C standard is unintentional. This volume of IEEE Std 1003.1-2001 defers to the ISO C standard.
The raise() function shall send the signal sig to the executing thread or process. If a signal handler is called, the raise() function shall not return until after the signal handler does.
If the implementation supports the Threads option, the effect of the raise() function shall be equivalent to calling:
pthread_kill(pthread_self(), sig);
Otherwise, the effect of the raise() function shall be equivalent to calling:
kill(getpid(), sig);
Upon successful completion, 0 shall be returned. Otherwise, a non-zero value shall be returned and errno shall be set to indicate the error.
The raise() function shall fail if:
The following sections are informative.
The term "thread" is an extension to the ISO C standard.
kill() , sigaction() , the Base Definitions volume of IEEE Std 1003.1-2001, <signal.h>, <sys/types.h>
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |