Re: sigaction and SA_SIGINFO
- From: "guenther@xxxxxxxxx" <guenther@xxxxxxxxx>
- Date: Wed, 27 Jun 2007 21:08:49 -0000
On Jun 27, 9:05 am, sgsnews...@xxxxxxxxx wrote:
I'm trying to determine the process id which sent the signal:
It seems that 'info' in myAction is set to NULL when the signal is
SIGINT however
if the signal is SIGTERM it is not NULL - why?
Your code looks good to me. Well, except for the use of fprintf()
from a signal handler, possible format mismatch for pid_t and uid_t,
and the unspecified setUserSignalType() and setSysSignalType()
functions, but this is one-off testing code...
What OS and version is this on?
Philip Guenther
.
- Follow-Ups:
- Re: sigaction and SA_SIGINFO
- From: sgsnewsgrp
- Re: sigaction and SA_SIGINFO
- References:
- sigaction and SA_SIGINFO
- From: sgsnewsgrp
- sigaction and SA_SIGINFO
- Prev by Date: Re: dlopen: fatal: relocation error
- Next by Date: Re: Unix Time and Leap Seconds
- Previous by thread: sigaction and SA_SIGINFO
- Next by thread: Re: sigaction and SA_SIGINFO
- Index(es):