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/fs/procfs | |
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/fs/procfs')
-rw-r--r-- | sys/fs/procfs/procfs_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/procfs/procfs_subr.c b/sys/fs/procfs/procfs_subr.c index b5ab705..4d255ad 100644 --- a/sys/fs/procfs/procfs_subr.c +++ b/sys/fs/procfs/procfs_subr.c @@ -36,7 +36,7 @@ * * @(#)procfs_subr.c 8.4 (Berkeley) 1/27/94 * - * $Id: procfs_subr.c,v 1.1.1.1 1994/05/24 10:05:08 rgrimes Exp $ + * $Id: procfs_subr.c,v 1.2 1994/08/02 07:45:21 davidg Exp $ */ #include <sys/param.h> @@ -106,7 +106,7 @@ loop: */ if (pfsvplock & PROCFS_LOCKED) { pfsvplock |= PROCFS_WANT; - sleep((caddr_t) &pfsvplock, PINOD); + (void) tsleep((caddr_t) &pfsvplock, PINOD, "pfsavp", 0); goto loop; } pfsvplock |= PROCFS_LOCKED; |