NetBSD Problem Report #17386
Received: (qmail 24877 invoked by uid 605); 25 Jun 2002 18:52:53 -0000
Message-Id: <20020625174406.9A69DAE@proven.weird.com>
Date: Tue, 25 Jun 2002 13:44:06 -0400 (EDT)
From: woods@weird.com (Greg A. Woods)
Sender: gnats-bugs-owner@netbsd.org
Reply-To: woods@planix.com (Greg A. Woods)
To: gnats-bugs@gnats.netbsd.org
Subject: processes killed because they exceeded RLIMIT_CPU are not logged
X-Send-Pr-Version: 3.95
>Number: 17386
>Category: kern
>Synopsis: processes killed because they exceeded RLIMIT_CPU are not logged
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 25 18:54:01 +0000 2002
>Closed-Date:
>Last-Modified:
>Originator: Greg A. Woods
>Release: NetBSD-current 2002/06/23
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD
>Description:
The kernel will kill processes that have exceeded rlim-rlim_max
without logging why.
>How-To-Repeat:
>Fix:
log the reason SIGKILL will be sent to the process.
Index: kern_synch.c
===================================================================
RCS file: /cvs/master/m-NetBSD/main/syssrc/sys/kern/kern_synch.c,v
retrieving revision 1.108
diff -c -c -r1.108 kern_synch.c
*** kern_synch.c 21 May 2002 01:38:27 -0000 1.108
--- kern_synch.c 25 Jun 2002 17:41:55 -0000
***************
*** 829,834 ****
--- 829,839 ----
* use sched_psignal.
*/
if (s >= rlim->rlim_max)
+ /* XXX really should invent:
+ *
+ * sched_killproc(p, "exceeded RLIMIT_CPU");
+ */
+ log(LOG_ERR, "pid %d will be killed: %s\n", p->p_pid, "exceeded RLIMIT_CPU");
sched_psignal(p, SIGKILL);
else {
sched_psignal(p, SIGXCPU);
>Release-Note:
>Audit-Trail:
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.