* Tracing SIGKILL, is that possible?
@ 2013-02-18 18:46 Daniel.
2013-02-18 19:09 ` Valdis.Kletnieks at vt.edu
0 siblings, 1 reply; 3+ messages in thread
From: Daniel. @ 2013-02-18 18:46 UTC (permalink / raw)
To: kernelnewbies
Is there a way to track signals, specially SIGKILL. I would like to
know if some process dies because reach some resource limit, because
an OMM error or something likewise..
Cheers
--
"Do or do not. There is no try"
Yoda Master
^ permalink raw reply [flat|nested] 3+ messages in thread
* Tracing SIGKILL, is that possible?
2013-02-18 18:46 Tracing SIGKILL, is that possible? Daniel.
@ 2013-02-18 19:09 ` Valdis.Kletnieks at vt.edu
2013-02-19 13:56 ` daniel hilst
0 siblings, 1 reply; 3+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2013-02-18 19:09 UTC (permalink / raw)
To: kernelnewbies
On Mon, 18 Feb 2013 15:46:58 -0300, "Daniel." said:
> Is there a way to track signals, specially SIGKILL. I would like to
> know if some process dies because reach some resource limit, because
> an OMM error or something likewise..
Depends on where you want the tracking to go. But your first thing to try
would probably be:
echo 1 > /proc/sys/kernel/print-fatal-signals
which controls this code in kernel/signal.c:
static void print_fatal_signal(int signr)
{
struct pt_regs *regs = signal_pt_regs();
printk("%s/%d: potentially unexpected fatal signal %d.\n",
current->comm, task_pid_nr(current), signr);
Bahh. That's missing a KERN_INFO. Patch submitted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130218/3d531897/attachment.bin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Tracing SIGKILL, is that possible?
2013-02-18 19:09 ` Valdis.Kletnieks at vt.edu
@ 2013-02-19 13:56 ` daniel hilst
0 siblings, 0 replies; 3+ messages in thread
From: daniel hilst @ 2013-02-19 13:56 UTC (permalink / raw)
To: kernelnewbies
Em 18/02/2013 16:09, Valdis.Kletnieks at vt.edu escreveu:
> On Mon, 18 Feb 2013 15:46:58 -0300, "Daniel." said:
>> Is there a way to track signals, specially SIGKILL. I would like to
>> know if some process dies because reach some resource limit, because
>> an OMM error or something likewise..
>
> Depends on where you want the tracking to go. But your first thing to try
> would probably be:
>
> echo 1 > /proc/sys/kernel/print-fatal-signals
>
> which controls this code in kernel/signal.c:
>
> static void print_fatal_signal(int signr)
> {
> struct pt_regs *regs = signal_pt_regs();
> printk("%s/%d: potentially unexpected fatal signal %d.\n",
> current->comm, task_pid_nr(current), signr);
>
> Bahh. That's missing a KERN_INFO. Patch submitted.
>
Hi Valdis, Thanks!
This should be a good start,
Cheers!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-19 13:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-18 18:46 Tracing SIGKILL, is that possible? Daniel.
2013-02-18 19:09 ` Valdis.Kletnieks at vt.edu
2013-02-19 13:56 ` daniel hilst
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).