Hi, there.
I was wondering if there was any way to determine the pid of a process (say
prA) that raised a signal on another process (say prB). That is, what could
I do in prB’s signal handler to determine if prA sent me a signal or if it
was some other process ( ie. an OS process )?
Thanks in advance.
Rodney Lott
Rodney Lott <rlott@fct.ca> wrote:
Hi, there.
I was wondering if there was any way to determine the pid of a process (say
prA) that raised a signal on another process (say prB). That is, what could
I do in prB’s signal handler to determine if prA sent me a signal or if it
was some other process ( ie. an OS process )?
I don’t think that information is available. In fact, I don’t think it
is even stored…and considering that if the signal was masked, it might
have been 3 different processes that raised the signal… it might not
even be valid.
-David
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.
Okay. I figured as much.
Thanks, David.
Rodney
“David Gibbs” <dagibbs@qnx.com> wrote in message
news:aomm2g$eb3$2@nntp.qnx.com…
Rodney Lott <> rlott@fct.ca> > wrote:
Hi, there.
I was wondering if there was any way to determine the pid of a process
(say
prA) that raised a signal on another process (say prB). That is, what
could
I do in prB’s signal handler to determine if prA sent me a signal or if
it
was some other process ( ie. an OS process )?
I don’t think that information is available. In fact, I don’t think it
is even stored…and considering that if the signal was masked, it might
have been 3 different processes that raised the signal… it might not
even be valid.
-David
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.