lakshmananindia has asked for the wisdom of the Perl Monks concerning the following question:
I want to get the process ID of the process which sends a signal to my process. I used sigaction, but inside the signal handler, I got only the signal name. I also printed the @_ with Dumper inside the signal handler. It contains only the Signal name.
So please tell me a way, how to get the process ID of a process which sends the signal?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sigaction handler
by ysth (Canon) on Dec 08, 2008 at 04:32 UTC | |
|
Re: sigaction handler
by almut (Canon) on Dec 08, 2008 at 10:11 UTC | |
|
Re: sigaction handler
by kennethk (Abbot) on Dec 08, 2008 at 04:14 UTC |