From owner-freebsd-standards@FreeBSD.ORG Sat Jun 21 09:34:47 2003 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3158237B401; Sat, 21 Jun 2003 09:34:47 -0700 (PDT) Received: from mail.tepkom.ru (mail.tepkom.ru [195.9.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F76043F85; Sat, 21 Jun 2003 09:34:44 -0700 (PDT) (envelope-from wart@mojo.tepkom.ru) Received: from localhost (localhost [127.0.0.1]) by mail.tepkom.ru (Postfix) with SMTP id C2AF197245; Sat, 21 Jun 2003 20:41:35 +0400 (MSD) Received: from mojo.tepkom.ru (mojo.tepkom.ru [195.9.10.30]) by mail.tepkom.ru (Postfix) with ESMTP id AA90A9722E; Sat, 21 Jun 2003 20:41:35 +0400 (MSD) Received: from wart by mojo.tepkom.ru with local (Exim 3.36 #1 (Debian)) id 19TlKD-0004zf-00; Sat, 21 Jun 2003 20:34:49 +0400 Date: Sat, 21 Jun 2003 20:34:49 +0400 From: Wartan Hachaturow To: Volker Stolz Message-ID: <20030621163449.GA19155@mojo.tepkom.ru> References: <200306201421.h5KELfUh011622@menelaos.informatik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200306201421.h5KELfUh011622@menelaos.informatik.rwth-aachen.de> User-Agent: Mutt/1.4i Sender: Wartan Hachaturow cc: standards@freebsd.org cc: FreeBSD-gnats-submit@freebsd.org Subject: standards/53554 fix for review (Re: interval timers not cleared in fork()) X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jun 2003 16:34:47 -0000 On Fri, Jun 20, 2003 at 04:21:42PM +0200, Volker Stolz wrote: > 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. SUSv3 requires this as well. This is a quick fix (for 5.1, it's also affected): --- ./resourcevar.h.orig Sat Jun 21 16:22:10 2003 +++ ./resourcevar.h Sat Jun 21 16:25:33 2003 @@ -52,11 +52,10 @@ #define pstat_startzero p_ru struct rusage p_ru; /* stats for this proc */ struct rusage p_cru; /* sum of stats for reaped children */ -#define pstat_endzero pstat_startcopy - -#define pstat_startcopy p_timer struct itimerval p_timer[3]; /* virtual-time timers */ +#define pstat_endzero pstat_startcopy +#define pstat_startcopy p_prof struct uprof { /* profile arguments */ caddr_t pr_base; /* buffer base */ u_long pr_size; /* buffer size */ -- Regards, Wartan. "Computers are not intelligent. They only think they are."