diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-12 16:38:40 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-12 16:38:40 +0000 |
commit | ae300fb1e66ecacf0700537970479b5967606685 (patch) | |
tree | 4a129aefc7ad3f38d81ba56b15ee37c1829478db /sys/kern | |
parent | bb35e57481616046fd1121242f7636192a320ca4 (diff) |
Fix my total blackout of the brain.
I rearrange half of this function to properly handle unlocking in one
error case, then I forget to handle that error case.
I even had a regression test written for this!
In other words: fix accept(2) to unlock when it runs out of fds.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 79ff605d430..9686bd11eaa 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_syscalls.c,v 1.50 2002/02/12 13:05:31 art Exp $ */ +/* $OpenBSD: uipc_syscalls.c,v 1.51 2002/02/12 16:38:39 art Exp $ */ /* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */ /* @@ -226,8 +226,7 @@ sys_accept(p, v, retval) so->so_onq = &head->so_q; TAILQ_INSERT_HEAD(so->so_onq, so, so_qe); wakeup_one(&head->so_timeo); - splx(s); - return (error); + goto bad; } *retval = tmpfd; |