diff options
author | 2012-03-10 05:54:28 +0000 | |
---|---|---|
committer | 2012-03-10 05:54:28 +0000 | |
commit | 762d41ba4f0054b363710b4dcefd08943e9c71b5 (patch) | |
tree | 5395486aa827027a4e8dff22d711443076beb3ac /sys/kern/kern_time.c | |
parent | ldap doesnt necessarily do referential checks on the users in a (diff) | |
download | wireguard-openbsd-762d41ba4f0054b363710b4dcefd08943e9c71b5.tar.xz wireguard-openbsd-762d41ba4f0054b363710b4dcefd08943e9c71b5.zip |
Add PS_EXITING to better differentiate between the process exiting and
the main thread exiting. c.f. regress/sys/kern/main-thread-exited/
Diffstat (limited to 'sys/kern/kern_time.c')
-rw-r--r-- | sys/kern/kern_time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index db6625040a7..3d2d36f4af9 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_time.c,v 1.71 2010/06/30 01:47:35 tedu Exp $ */ +/* $OpenBSD: kern_time.c,v 1.72 2012/03/10 05:54:28 guenther Exp $ */ /* $NetBSD: kern_time.c,v 1.20 1996/02/18 11:57:06 fvdl Exp $ */ /* @@ -705,7 +705,7 @@ realitexpire(void *arg) timo = tvtohz(&ntv) - 1; if (timo <= 0) timo = 1; - if ((p->p_flag & P_WEXIT) == 0) + if ((p->p_p->ps_flags & PS_EXITING) == 0) timeout_add(&p->p_realit_to, timo); return; } |