summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2008-10-03 04:22:37 +0000
committerguenther <guenther@openbsd.org>2008-10-03 04:22:37 +0000
commit45ad980a3e7a38b31b9cf80cc36f277e18ce65c8 (patch)
treea0018f14fe34ec02a5b83797323b7a112dc05ed3 /lib/libc/stdlib/malloc.c
parentReturn ENOTTY for unknown ioctl's. (diff)
downloadwireguard-openbsd-45ad980a3e7a38b31b9cf80cc36f277e18ce65c8.tar.xz
wireguard-openbsd-45ad980a3e7a38b31b9cf80cc36f277e18ce65c8.zip
Make sigwait() work correctly. In particular, it'll work when the
signal is already pending in the calling thread or the main thread and there's no longer a race condition where the signal could be diverted but sigwait() would still block. There were some off-by-one errors too. (The checking of the main thread's pending list is just until a pending list for the process can be added to struct process. For now, such signals end up as pending on the main thread.) oks tedu@ and art@
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions