03-23-07 06:22 PM
"None" <kushal.singh@gmail.com> writes:
> It may sound silly, but is there any way to know the source of signal?
>
> Actually, my application(daemon) is getting SIGHUP. It was not raised
> manually and also not by my other applications also.
SIGHUP is normally generated by having your controlling tty hanging
up. Is that possible here?
> can it be becuse of faulty HW also?
Not likely, but I suppose it's remotely possible. Why do you suspect
that?
> I am using Netra 240 with Solaris
> 10.
Try using "truss -t\!all" to find the source of the signal. You
should get output like this:
Received signal #1, SIGHUP, in read() [default]
siginfo: SIGHUP pid=12466 uid=108472
The "pid=" shows what process sent the signal, and the "uid=" shows
the user who did it.
Another suggestion is to look into dtrace. You can get much finer
granularity information from it, and there's extensive documentation
available.
--
James Carlson, Solaris Networking <james.d.carlson@sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
[ Post a follow-up to this message ]
|