mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mo McKinlay <lkml@ekto.ekol.co.uk>
To: linux-kernel@vger.kernel.org
Subject: Re: logging when SIGSEGV is processed?
Date: Sun, 14 Sep 2003 12:14:08 +0100	[thread overview]
Message-ID: <20030914111408.GA14514@strawberry.blancmange.org> (raw)

> I found this patch for kernel 2.2 which logs a message when some process 
> receives SIGSEGV.

Why not just do it in userspace? A program which does nothing more than
spawn a child and wait for it to terminate, performing some action based on
the kind and status of exit, should be fairly trivial?

Admittedly, it might need some shoehorning into some existing setups (i.e.,
where the daemon you wish to watch isn't started directly, but by something
else), but it wouldn't be too tricky, I'd've thought.

[See wait(2), specifically the bits about how to interpret `status']

Mo.

             reply	other threads:[~2003-09-14 11:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-14 11:14 Mo McKinlay [this message]
2003-09-14 17:17 ` bert hubert
2003-09-15  7:09   ` Alex Riesen
2003-09-15  7:47     ` Alan Cox
2003-09-15 16:05       ` Folkert van Heusden
  -- strict thread matches above, loose matches on Subject: below --
2003-09-14  1:28 Folkert van Heusden
2003-09-14  2:18 ` Joshua Kwan
2003-09-14  7:23   ` Folkert van Heusden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030914111408.GA14514@strawberry.blancmange.org \
    --to=lkml@ekto.ekol.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®