diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2013-11-25 15:24:19 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2013-11-25 15:24:19 +0000 |
commit | b02ed43376fc1bf373f437adc6af52ad1888fafc (patch) | |
tree | 84fc821105190d91a5a724f47e0f0aff3da8a802 /sys/kern | |
parent | b16257054ffdc1a4653b70513e323e3990941db4 (diff) |
rename magicnumber to globalsleepaddr
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_synch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index f1e5c8f4649..84f0028289a 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_synch.c,v 1.110 2013/11/18 23:09:46 tedu Exp $ */ +/* $OpenBSD: kern_synch.c,v 1.111 2013/11/25 15:24:18 tedu Exp $ */ /* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */ /* @@ -423,7 +423,7 @@ thrsleep_unlock(void *lock, int lockflags) return (error); } -static int magicnumber; +static int globalsleepaddr; int thrsleep(struct proc *p, struct sys___thrsleep_args *v) @@ -490,7 +490,7 @@ thrsleep(struct proc *p, struct sys___thrsleep_args *v) else { void *sleepaddr = &p->p_thrslpid; if (ident == -1) - sleepaddr = &magicnumber; + sleepaddr = &globalsleepaddr; error = tsleep(sleepaddr, PUSER | PCATCH, "thrsleep", (int)to_ticks); } @@ -545,7 +545,7 @@ sys___thrwakeup(struct proc *p, void *v, register_t *retval) if (ident == 0) *retval = EINVAL; else if (ident == -1) - wakeup(&magicnumber); + wakeup(&globalsleepaddr); else { TAILQ_FOREACH(q, &p->p_p->ps_threads, p_thr_link) { if (q->p_thrslpid == ident) { |