[newlib-cygwin] Cygwin: FIFO: update set_close_on_exec
Corinna Vinschen
corinna@sourceware.org
Wed Mar 27 13:03:00 GMT 2019
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=1aa438a94c9a3b89930bd6a10a6fc8de0c2bd282
commit 1aa438a94c9a3b89930bd6a10a6fc8de0c2bd282
Author: Ken Brown <kbrown@cornell.edu>
Date: Fri Mar 22 19:30:40 2019 +0000
Cygwin: FIFO: update set_close_on_exec
Deal with each client.
Diff:
---
winsup/cygwin/fhandler_fifo.cc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc
index 7a592aa..2c20444 100644
--- a/winsup/cygwin/fhandler_fifo.cc
+++ b/winsup/cygwin/fhandler_fifo.cc
@@ -867,4 +867,10 @@ fhandler_fifo::set_close_on_exec (bool val)
fhandler_base::set_close_on_exec (val);
set_no_inheritance (read_ready, val);
set_no_inheritance (write_ready, val);
+ for (int i = 0; i < nclients; i++)
+ {
+ client[i].fh->fhandler_base::set_close_on_exec (val);
+ set_no_inheritance (client[i].connect_evt, val);
+ set_no_inheritance (client[i].dummy_evt, val);
+ }
}
More information about the Cygwin-cvs
mailing list