From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 18 03:14:21 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2F8337B401 for ; Wed, 18 Jun 2003 03:14:21 -0700 (PDT) Received: from atlas.informatik.rwth-aachen.de (atlas.Informatik.RWTH-Aachen.DE [137.226.194.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C33343F93 for ; Wed, 18 Jun 2003 03:14:20 -0700 (PDT) (envelope-from stolz@i2.informatik.rwth-aachen.de) Received: from menelaos.informatik.rwth-aachen.de (menelaos.Informatik.RWTH-Aachen.DE [137.226.194.73]) 8.11.1-0.5) with ESMTP id h5IAEJK28380 for ; Wed, 18 Jun 2003 12:14:19 +0200 Received: (from stolz@localhost)h5IAEJgv049537 for hackers@freebsd.org; Wed, 18 Jun 2003 12:14:19 +0200 (CEST) (envelope-from stolz) Date: Wed, 18 Jun 2003 12:14:19 +0200 From: Volker Stolz To: hackers@freebsd.org Message-ID: <20030618101419.GE1133@i2.informatik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-PGP-Key: finger vs@foldr.org X-PGP-Id: 0x3FD1B6B5 User-Agent: Mutt/1.5.3i Subject: ITIMER_VIRTUAL running in child after fork()? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2003 10:14:22 -0000 The man page for fork() says: "· All interval timers are cleared; see setitimer(2)." So clearly ITIMER_VIRTUAL should be cleared as well, but a quick test showed that a fork()ed child still has the VIRTUAL (& PROF) timer running. Is this right? -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME rage against the finite state machine