summaryrefslogtreecommitdiff
path: root/sys/kern/kern_descrip.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2006-05-07 20:12:42 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2006-05-07 20:12:42 +0000
commit5b458e8d496bd0cdc94f0ec7a9ff9ae741d961ed (patch)
tree6159b73e9e098b39bf803a6b9e74326ab3bc1345 /sys/kern/kern_descrip.c
parent4a02f1bb86ffaf58c243035d5c3117d4611db8eb (diff)
add a name to rwlock so that we can tell where procs are getting stuck
without breaking into ddb. doubles the size of rwlock [1], but moving forward this really helps. ok/tested pedro fgsch millert krw [1 - next person to add a field to this struct gets whipped with a wet noodle]
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r--sys/kern/kern_descrip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index b4cadf9cbae..e41013a29b0 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_descrip.c,v 1.73 2006/01/06 18:28:33 jmc Exp $ */
+/* $OpenBSD: kern_descrip.c,v 1.74 2006/05/07 20:12:41 tedu Exp $ */
/* $NetBSD: kern_descrip.c,v 1.42 1996/03/30 22:24:38 christos Exp $ */
/*
@@ -847,7 +847,7 @@ fdinit(struct proc *p)
if (newfdp->fd_fd.fd_rdir)
VREF(newfdp->fd_fd.fd_rdir);
}
- rw_init(&newfdp->fd_fd.fd_lock);
+ rw_init(&newfdp->fd_fd.fd_lock, "fdlock");
/* Create the file descriptor table. */
newfdp->fd_fd.fd_refcnt = 1;