lkml.org 
[lkml]   [2003]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.037 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site