From owner-freebsd-standards@FreeBSD.ORG Fri Jun 20 07:30:13 2003 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56B5337B401 for ; Fri, 20 Jun 2003 07:30:13 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B4CA43FDD for ; Fri, 20 Jun 2003 07:30:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h5KEUCUp022054 for ; Fri, 20 Jun 2003 07:30:12 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h5KEUCFt022053; Fri, 20 Jun 2003 07:30:12 -0700 (PDT) Resent-Date: Fri, 20 Jun 2003 07:30:12 -0700 (PDT) Resent-Message-Id: <200306201430.h5KEUCFt022053@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-standards@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Volker Stolz Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4E2B37B401; Fri, 20 Jun 2003 07:21:44 -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 08A8B43FA3; Fri, 20 Jun 2003 07:21:43 -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 h5KELgK20857; Fri, 20 Jun 2003 16:21:42 +0200 Received: (from stolz@localhost)h5KELfUh011622; Fri, 20 Jun 2003 16:21:42 +0200 (CEST) (envelope-from stolz) Message-Id: <200306201421.h5KELfUh011622@menelaos.informatik.rwth-aachen.de> Date: Fri, 20 Jun 2003 16:21:42 +0200 (CEST) From: Volker Stolz To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: standards@FreeBSD.org Subject: standards/53554: interval timers not cleared in fork() X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Volker Stolz List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2003 14:30:13 -0000 >Number: 53554 >Category: standards >Synopsis: interval timers not cleared in fork() >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 20 07:30:11 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Volker Stolz >Release: FreeBSD 4.8-STABLE i386 >Organization: Lehrstuhl für Informatik II >Environment: System: FreeBSD menelaos.informatik.rwth-aachen.de 4.8-STABLE FreeBSD 4.8-STABLE #4: Tue Apr 29 11:28:13 CEST 2003 root@menelaos.informatik.rwth-aachen.de:/usr/obj/usr/src/sys/MENELAOS i386 >Description: The FreeBSD man page says on calling fork(): "All interval timers are cleared; see setitimer(2)." SUSv2 says that on invoking fork(): - If the Timers option is supported, per-process timers created by the parent are not inherited by the child process. However, a quick test reveals that only the REAL timer is stopped, PROF and VIRTUAL keep running. >How-To-Repeat: Sample program which sets the timers, forks and checks if timers are still enabled in the child at: http://www.foldr.org/~stolz/timer.c virtual set: interval=1 500 value=1 500 REAL get: interval=0 0 value=0 0 PROF get: interval=1 500 value=1 500 VIRTUAL get: interval=1 500 value=1 500 >Fix: >Release-Note: >Audit-Trail: >Unformatted: