diff options
author | 2006-07-11 19:10:20 +0000 | |
---|---|---|
committer | 2006-07-11 19:10:20 +0000 | |
commit | c2fa3724d4fb5e3fbba0a2484a9e674d6d5fbcb7 (patch) | |
tree | 173b4bff87d7b15b90fba17667aaefd6bf8300b8 | |
parent | Let armish and cats recognize MBR partitioning, to come up with proper (diff) | |
download | wireguard-openbsd-c2fa3724d4fb5e3fbba0a2484a9e674d6d5fbcb7.tar.xz wireguard-openbsd-c2fa3724d4fb5e3fbba0a2484a9e674d6d5fbcb7.zip |
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.h | 7 |
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 */ |