how to send user defined signal in linux
how to send signal to a certain process, i know one way is though the keyboard, are there any other way such as writting a program that contains some sorta of send_sig function???
|
have you tried
Code:
man signal |
kill -s (signal) pid
To get a list of signals which you can send to a program: kill -l I am a little confused about your question. Is it possible to write a program that has some send_sig function? Of course it is! Here's a python example: Code:
#!/usr/bin/python |
yeah i read through those, but it's not what I wanted
I want to be able to send a user defined-signal to a group leader, which in term it will pass "my" signal down to all of its children. So far everything I read is about how to catch the signal, the only thing that tells me about sending is through keyboard, or kill(), raise(), <-- but these are not user-defined though. |
sorry man, my bad, i see what you mean now
|
thanks guys, I just got a little confused on myself, thanks for the help, i think I got it now
|
How to send user defined signals in linux using C.
Hi ,
I am also looking answer for the same question. How to send user defined signals in linux using C. I believe you already got the answer for this, so can you please share the same. |
All times are GMT -5. The time now is 09:27 PM. |