diff options
author | 2001-11-28 02:28:55 +0000 | |
---|---|---|
committer | 2001-11-28 02:28:55 +0000 | |
commit | e8565adc95ead6b3380d04ad3827098bcbd3a3d7 (patch) | |
tree | 1d576b5117644fcb1cf68b865b922d43e35138d8 /sys/kern/uipc_socket2.c | |
parent | Catch SIGINT in sendmessage() so user can interupt a long message (diff) | |
download | wireguard-openbsd-e8565adc95ead6b3380d04ad3827098bcbd3a3d7.tar.xz wireguard-openbsd-e8565adc95ead6b3380d04ad3827098bcbd3a3d7.zip |
from enami@netbsd:
Give different names for different wait channels
Diffstat (limited to 'sys/kern/uipc_socket2.c')
-rw-r--r-- | sys/kern/uipc_socket2.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c index 5ea887dfbca..be3fb91993c 100644 --- a/sys/kern/uipc_socket2.c +++ b/sys/kern/uipc_socket2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket2.c,v 1.22 2001/11/27 22:53:19 provos Exp $ */ +/* $OpenBSD: uipc_socket2.c,v 1.23 2001/11/28 02:28:55 provos Exp $ */ /* $NetBSD: uipc_socket2.c,v 1.11 1996/02/04 02:17:55 christos Exp $ */ /* @@ -54,9 +54,10 @@ */ /* strings for sleep message: */ -char netio[] = "netio"; char netcon[] = "netcon"; char netcls[] = "netcls"; +char netio[] = "netio"; +char netlck[] = "netlck"; u_long sb_max = SB_MAX; /* patchable */ @@ -290,7 +291,7 @@ sb_lock(sb) sb->sb_flags |= SB_WANT; error = tsleep((caddr_t)&sb->sb_flags, (sb->sb_flags & SB_NOINTR) ? - PSOCK : PSOCK|PCATCH, netio, 0); + PSOCK : PSOCK|PCATCH, netlck, 0); if (error) return (error); } |