public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: FIFO: update set_close_on_exec
@ 2019-03-27 13:03 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2019-03-27 13:03 UTC (permalink / raw)
To: cygwin-cvs
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);
+ }
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-03-27 13:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-27 13:03 [newlib-cygwin] Cygwin: FIFO: update set_close_on_exec Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).