Messages in this thread | ![/](/images/icornerl.gif) | | Date | Sun, 14 Sep 2003 12:14:08 +0100 | From | Mo McKinlay <> | Subject | Re: logging when SIGSEGV is processed? |
| |
> 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. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| ![\](/images/icornerr.gif) |