From owner-freebsd-bugs Tue Oct 26 3:30: 9 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 74CB714E5B for ; Tue, 26 Oct 1999 03:30:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA82864; Tue, 26 Oct 1999 03:30:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from isabase.philol.msu.ru (isabase.philol.msu.ru [195.208.217.73]) by hub.freebsd.org (Postfix) with ESMTP id 92F7C14DBA for ; Tue, 26 Oct 1999 03:24:43 -0700 (PDT) (envelope-from grg@isabase.philol.msu.ru) Received: (from grg@localhost) by isabase.philol.msu.ru (8.9.3/8.9.2) id OAA01997; Tue, 26 Oct 1999 14:24:29 +0400 (MSD) (envelope-from grg) Message-Id: <199910261024.OAA01997@isabase.philol.msu.ru> Date: Tue, 26 Oct 1999 14:24:29 +0400 (MSD) From: Grigoriy Strokin Reply-To: grg@isabase.philol.msu.ru To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/14540: ulimit -c 0 and limits -c 0 no longer disable creating core dumps Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 14540 >Category: kern >Synopsis: ulimit -c 0 and limits -c 0 no longer disable creating core dumps >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 26 03:30:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Grigoriy Strokin >Release: FreeBSD 3.3-STABLE i386 >Organization: Moscow University >Environment: /bin/sh or bash 2.03.0(1) as login shell >Description: In older versions of FreeBSD one might use ulimit -c 0 to disable creation of core files. Now neither ulimit -c 0 nor limits -B -c 0 don't do what is expected: the core dumps are created, though of zero size. However, man limits says: example, if you wish to disable core dumps when starting up the usenet news system, but wish to set all other resource settings as well that apply to the 'news' account, you might use: eval `limits -U news -aBec 0` >How-To-Repeat: ulimit -c 0; limits -B -c 0; cat; [press Ctrl-\] Result: the file cat.core will be created. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message