RAISE(3) BSD Library Functions Manual RAISE(3)NAME
raise -- send a signal to the current thread
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <signal.h>
int
raise(int sig);
DESCRIPTION
The raise() function sends the signal sig to the current thread.
RETURN VALUES
The raise() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate
the error.
ERRORS
The raise() function may fail and set errno for any of the errors specified for the library functions getpid(2) and kill(2).
SEE ALSO kill(2)STANDARDS
The raise() function conforms to ISO/IEC 9899:1990 (``ISO C90'').
BSD May 7, 2010 BSD
Check Out this Related Man Page
RAISE(3) Linux Programmer's Manual RAISE(3)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 only return after the signal handler has returned.
RETURN VALUE
raise() returns 0 on success, and nonzero for failure.
CONFORMING TO
C89, C99, POSIX.1-2001.
NOTES
Since version 2.3.3, glibc implements raise() by calling tgkill(2), if the kernel supports that system call. Older glibc versions imple-
mented raise() using kill(2).
SEE ALSO getpid(2), kill(2), sigaction(2), signal(2), pthread_kill(3), signal(7)COLOPHON
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 2012-04-20 RAISE(3)
I am trying to send a SIGUSR1 to a set of process. Please tell
me how to do. I've tried the system call raise(int sig) but it just
raise a signal of to the 'current process.'
My program is about a network chat server. When a client
connects in, The main process will fork a new process... (1 Reply)
Hi,
I have 2 processes X and Y. Y is exec() from X. In Y i have an exit handler, which is called when i return from main. With in exit handler i delete and object which in turn calls the destructor of the object, which terminates all the threads of Y.
I believe that SIGCHLD is raised by Y as... (4 Replies)
Hi
If there is a file upload done from a remote server
and if the file remains without being extracted for more than an hour,
I need to identify the files and create an alert message to the
users in the other end.
please help me writing a shell script for it.
Regards
Yazhini (2 Replies)
i have installed vmware on a text base linux node
now i have to vmware-configure.pl to do the initial configuration
now 1st step it askes for agreeing for a " License Agreement"
for that i have to say "q" and "yes" to Accept it
i want to run a script with does these 3 steps... (6 Replies)
Hi All,
Please help to write the script that should raise an alarm if the new logs will not come in the log file.
In other words i want to write a script which will monitor the log file continuously and will raise an alarm if the logs will not come after some time suppose 5... (5 Replies)
Hi,
The following test case populate an array named: array3.
Since array1 and array2 are equal in length and values array3 will remain empty.
#!/usr/bin/ksh
test() {
set -A array1 "A"
set -A array2 "A"
NUM_1=`echo ${#array1}`
print "num elenemt in NUM_1 is ${NUM_1}"
i=1
for ELE2 in... (1 Reply)
Hi members, I am working in WebSphere in Unix environment. we are working with 500 odd servers and most of the times processes got down. Can i have any shell script through whih some popup with alarm get raised whenever some server get down. kindly help.. Thanks Rishi (1 Reply)
hi,
in my application, i have set up to capture SIGINT and execute a handler.the problem is whenever i hit C-c, multiple SIGINT are sent to the application.I have blocked the SIGINT right after catching the first one but it is unsuccessful.Here is what i do :
jmp_buf main_loop;
int... (1 Reply)
I am trying to write a script that raises a integer (m) by a exponent (n) using a while loop
ex. 5 raised to the power of 2 ..
I am a beginner and i dont know what is the opperand or command i have to use to make this happen..this is what i have so far...
echo "Enter a integer for the... (3 Replies)
Example:
I have server name A with an IP : 125.252.235.455
I have an username /password to login into this server under SSH connection
In this server i have a path /apps/user/filename(Big.txt)
Everyday we used to get the filename as Big.txt.
I want a shell script to monitor this path... (4 Replies)
Input data:
I'd like to calculate using value in second column. The value needs to be created using a formula, that employs exp (that is e raise to the power).
awk '{
if(FNR==1){
##if first line than print as is and add third column
print $0,"weight"
}
else{
if($2<=0.01){... (2 Replies)