diff options
author | dg <dg@FreeBSD.org> | 1994-10-06 21:07:04 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-10-06 21:07:04 +0000 |
commit | 2add6128e22fca2b5350fbda48427077f03c16bb (patch) | |
tree | f7a29b84bd4828e9297f7385d79ab2ce4fa9c50c /sys/kern/sysv_sem.c | |
parent | dbd2b6665c27bd5ee1a1b627060085c53d581b06 (diff) | |
download | FreeBSD-src-2add6128e22fca2b5350fbda48427077f03c16bb.zip FreeBSD-src-2add6128e22fca2b5350fbda48427077f03c16bb.tar.gz |
Use tsleep() rather than sleep so that 'ps' is more informative about
the wait.
Diffstat (limited to 'sys/kern/sysv_sem.c')
-rw-r--r-- | sys/kern/sysv_sem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c index 751896a..9bafdff 100644 --- a/sys/kern/sysv_sem.c +++ b/sys/kern/sysv_sem.c @@ -1,4 +1,4 @@ -/* $Id: sysv_sem.c,v 1.2 1994/09/17 13:24:17 davidg Exp $ */ +/* $Id: sysv_sem.c,v 1.3 1994/10/02 17:35:27 phk Exp $ */ /* * Implementation of SVID semaphores @@ -58,7 +58,7 @@ semsys(p, uap, retval) { while (semlock_holder != NULL && semlock_holder != p) - sleep((caddr_t)&semlock_holder, (PZERO - 4)); + (void) tsleep((caddr_t)&semlock_holder, (PZERO - 4), "semsys", 0); if (uap->which >= sizeof(semcalls)/sizeof(semcalls[0])) return (EINVAL); @@ -849,7 +849,7 @@ semexit(p) #ifdef SEM_DEBUG printf("semaphore facility locked - sleeping ...\n"); #endif - sleep((caddr_t)&semlock_holder, (PZERO - 4)); + (void) tsleep((caddr_t)&semlock_holder, (PZERO - 4), "semext", 0); } did_something = 0; |