4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-03-04 05:55:38 +08:00
Corinna Vinschen 535903696c Cygwin: honor SOCK_NONBLOCK/SOCK_CLOEXEC in socket(2)/socketpair(2)
fhandler_socket_wsock::set_socket_handle calls set_flags after
setting the O_NONBLOCK/O_CLOEXEC flags, thus overwriting them.

It also turns out that fhandler_socket_wsock::init_events is called
too late.  The inheritence flags are changed before creating the
socket event handling objects.  Thus, inheritence flags for
those objects are wrong with SOCK_CLOEXEC.

Fix this by reordering the calls and setting the file flags through
fhandler_base::set_flags.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2018-11-05 21:02:22 +01:00
..
2018-10-10 17:49:53 +02:00
2016-11-24 16:09:31 +01:00
2018-08-07 14:51:10 +02:00
2016-08-23 15:07:42 +01:00
2016-06-25 00:43:01 +02:00
2018-02-20 17:59:53 +01:00
2016-06-24 23:32:39 +02:00
2018-03-06 18:23:23 +01:00
2015-11-18 19:09:47 +01:00
2017-03-27 22:03:58 +01:00
2018-10-10 17:49:53 +02:00
2018-08-07 14:51:10 +02:00
2018-08-07 14:51:10 +02:00
2015-08-17 11:05:43 +02:00
2016-06-23 21:30:15 +02:00
2018-02-07 13:07:44 +01:00
2018-04-16 22:46:11 -05:00
2018-02-07 13:07:44 +01:00
2018-08-07 14:51:10 +02:00
2017-03-27 22:03:58 +01:00
2016-06-23 16:56:41 +02:00
2017-04-24 17:14:03 +02:00