diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-11-23 13:18:17 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-11-23 13:18:17 +0000 |
commit | 3f66d7b5cd1da8ce72f2502a2201714dd27cedee (patch) | |
tree | 2ab2e61e4df8bb471092e4917616648e2b63c05f | |
parent | 24d18c11a330975aa61fe7232d6655857cdbbc3f (diff) |
Replace in-line implementation of soqinsque with a call to soqinsque.
"looks right" deraadt@
-rw-r--r-- | sys/kern/uipc_syscalls.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index b8b0fb9262e..ec72a5fae78 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_syscalls.c,v 1.71 2009/08/10 16:49:39 thib Exp $ */ +/* $OpenBSD: uipc_syscalls.c,v 1.72 2009/11/23 13:18:16 jacekm Exp $ */ /* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */ /* @@ -209,10 +209,7 @@ sys_accept(struct proc *p, void *v, register_t *retval) * do another wakeup so some other process might * have a chance at it. */ - so->so_head = head; - head->so_qlen++; - so->so_onq = &head->so_q; - TAILQ_INSERT_HEAD(so->so_onq, so, so_qe); + soqinsque(head, so, 1); wakeup_one(&head->so_timeo); goto bad; } |