Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jun 2003 09:40:06 -0700 (PDT)
From:      Wartan Hachaturow <wart@tepkom.ru>
To:        freebsd-standards@FreeBSD.org
Subject:   standards/53554 fix for review (Re: interval timers not cleared in fork())
Message-ID:  <200306211640.h5LGe69X071883@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR standards/53554; it has been noted by GNATS.

From: Wartan Hachaturow <wart@tepkom.ru>
To: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Cc: FreeBSD-gnats-submit@freebsd.org, standards@freebsd.org
Subject: standards/53554 fix for review (Re: interval timers not cleared in fork())
Date: Sat, 21 Jun 2003 20:34:49 +0400

 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."


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306211640.h5LGe69X071883>