Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Getting the source of a signal

by moritz (Cardinal)
on Nov 30, 2012 at 07:44 UTC ( #1006423=note: print w/replies, xml ) Need Help??


in reply to Getting the source of a signal

To the best of my knowledge, Linux and UNIX-Systems don't make that information available. So no, you can't find out.

Replies are listed 'Best First'.
Re^2: Getting the source of a signal
by RichardK (Parson) on Nov 30, 2012 at 10:44 UTC

    POSIX sigaction might give you access to the pid, BUT the docs say it's not often implemented

    sigaction Detailed signal management. This uses POSIX::SigAction objects for + the action and oldaction arguments (the oldaction can also be just a + hash reference). Consult your system's sigaction manpage for details +, see also POSIX::SigRt. ... The following are also defined by POSIX/SUSv3, but unfortunately not v +ery widely implemented: pid the process id generating the signal uid the uid of the process id generating the signal status exit value or signal for SIGCHLD band band event for SIGPOLL

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006423]
help
Chatterbox?
[holli]: is there anybody out there?
[shmem]: the world is full of people - out there...
[holli]: are you sure? or are they mere prjections of my hallucinating mind?
shmem feels uneasy over his guess of the tune for silent night, perl 6 night

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2017-09-22 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (269 votes). Check out past polls.

    Notices?