Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262364AbTINLOS (ORCPT ); Sun, 14 Sep 2003 07:14:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262366AbTINLOS (ORCPT ); Sun, 14 Sep 2003 07:14:18 -0400 Received: from strawberry.blancmange.org ([62.3.122.65]:15623 "EHLO strawberry.blancmange.org") by vger.kernel.org with ESMTP id S262364AbTINLOR (ORCPT ); Sun, 14 Sep 2003 07:14:17 -0400 Date: Sun, 14 Sep 2003 12:14:08 +0100 From: Mo McKinlay To: linux-kernel@vger.kernel.org Subject: Re: logging when SIGSEGV is processed? Message-ID: <20030914111408.GA14514@strawberry.blancmange.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 826 Lines: 19 > 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/