diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-11-13 11:53:02 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-11-13 11:53:02 +0000 |
| commit | 124e4c3be8dae63a1024352685e1c2b9e64a8312 (patch) | |
| tree | 15f70d195895ba0b6c385bc2892b07302db4faaa /sys/kern/kern_exec.c | |
| parent | 5512dc546062eb2cfb692fc200ced924a917d205 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_exec.c')
| -rw-r--r-- | sys/kern/kern_exec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index c6d3e5c3a543..92ed0242f34f 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -465,16 +465,16 @@ interpret: * For security and other reasons, the file descriptor table cannot * be shared after an exec. */ - FILEDESC_LOCK(p->p_fd); + FILEDESC_LOCK_FAST(p->p_fd); if (p->p_fd->fd_refcnt > 1) { struct filedesc *tmp; - FILEDESC_UNLOCK(p->p_fd); + FILEDESC_UNLOCK_FAST(p->p_fd); tmp = fdcopy(p->p_fd); fdfree(td); p->p_fd = tmp; } else - FILEDESC_UNLOCK(p->p_fd); + FILEDESC_UNLOCK_FAST(p->p_fd); /* * Malloc things before we need locks. |
