-   Linux - Newbie (
-   -   Sending signal from c program (

ravisingla 02-08-2009 11:42 PM

Sending signal from c program
I tried to send SIGUSR1 signal to a process using
system("kill -SIGUSR1 1234"); where 1234 is pid of process
m getting error
kill: SIGUSR1: invalid signal specification
and signal is not sent to the process.
But If I run same command from konsole it is working fine??
can anyone suggest what going wrong??
Thanks in advance..
Ravi Singla

kauuttt 02-09-2009 03:13 AM

Use the following function to send the signal through C code
kill (int pid, int signal);

raise() will send a signal to the program that contains this raise() call..


All times are GMT -5. The time now is 02:18 AM.