When interrupted, connect() should leave the socket connecting in the
authorguenther <guenther@openbsd.org>
Tue, 9 Aug 2016 02:25:35 +0000 (02:25 +0000)
committerguenther <guenther@openbsd.org>
Tue, 9 Aug 2016 02:25:35 +0000 (02:25 +0000)
commit5e8284b2689a3a73fc7763a8fe4743d6d3544a7d
treeadc4a1601af3af7a01652a45733f3ecfd6209892
parentfe66ebf209069d32287c26847acfe09236583ba3
When interrupted, connect() should leave the socket connecting in the
background, similar to a non-blocking socket.  Return EALREADY whenever
already connecting, not just for non-blocking sockets.  Fix from {Free,Net}BSD

Prompted by a report from Michael Reed (m.reed (at) mykolab.com)
ok millert@
regress/lib/libpthread/restart/connect/connect.c
sys/kern/uipc_syscalls.c