summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Miller <kurt@cvs.openbsd.org>2006-07-11 19:10:21 +0000
committerKurt Miller <kurt@cvs.openbsd.org>2006-07-11 19:10:21 +0000
commit89a7db6727edf8cd68c273e20f8d77bd39dba6ef (patch)
tree8a85cc3a00228c405a893b268694567fb66f11f3
parent0fedb4bf79e78067d5429bbb0184b3157b1ee6ba (diff)
Ensure virtual and profiling interval timers are reset in child process
after fork() per POSIX (PR: system/5126). Fix from FreeBSD. okay miod@
-rw-r--r--sys/sys/resourcevar.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/sys/resourcevar.h b/sys/sys/resourcevar.h
index 8f870eb65a4..5cfabc533c3 100644
--- a/sys/sys/resourcevar.h
+++ b/sys/sys/resourcevar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: resourcevar.h,v 1.8 2004/08/04 21:49:18 art Exp $ */
+/* $OpenBSD: resourcevar.h,v 1.9 2006/07/11 19:10:20 kurt Exp $ */
/* $NetBSD: resourcevar.h,v 1.12 1995/11/22 23:01:53 cgd Exp $ */
/*
@@ -45,11 +45,10 @@ struct pstats {
#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 */
size_t pr_size; /* buffer size */