public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: FIFO: update set_close_on_exec
Date: Wed, 27 Mar 2019 13:03:00 -0000	[thread overview]
Message-ID: <20190327130311.34852.qmail@sourceware.org> (raw)

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);
+    }
 }


                 reply	other threads:[~2019-03-27 13:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190327130311.34852.qmail@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).