When connect(2) is interrupted by a signal it continues asynchronously
authormillert <millert@openbsd.org>
Tue, 9 Aug 2016 12:09:40 +0000 (12:09 +0000)
committermillert <millert@openbsd.org>
Tue, 9 Aug 2016 12:09:40 +0000 (12:09 +0000)
commiteb227d5fc399f109decebab16bb17a7f478fef07
treefaf68409ff16bca1986ac77ea70b273f33e039b1
parent96cf0edf19da78d18906cbb2777b6d02e74fec60
When connect(2) is interrupted by a signal it continues asynchronously
and you need to do the same poll(2) dance as if the socket was
non-blocking.  Fixes a crash when the window is resized while
connecting.  OK deraadt@
usr.bin/ftp/ftp.c