public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: FIFO: fix fifo_client_handler::close
@ 2019-04-16 11:16 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2019-04-16 11:16 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=3ef03376c5b8de8b2a80aded2f3602931cc26ae5
commit 3ef03376c5b8de8b2a80aded2f3602931cc26ae5
Author: Ken Brown <kbrown@cornell.edu>
Date: Sun Apr 14 19:16:00 2019 +0000
Cygwin: FIFO: fix fifo_client_handler::close
Make sure that fhandler_base::close rather than fhandler_fifo::close
is called on the fhandler. Also, delete the fhandler, since we
allocated it.
Diff:
---
winsup/cygwin/fhandler_fifo.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc
index 2da579b..f9796f3 100644
--- a/winsup/cygwin/fhandler_fifo.cc
+++ b/winsup/cygwin/fhandler_fifo.cc
@@ -809,7 +809,10 @@ fifo_client_handler::close ()
int res = 0;
if (fh)
- res = fh->close ();
+ {
+ res = fh->fhandler_base::close ();
+ delete fh;
+ }
if (connect_evt)
CloseHandle (connect_evt);
if (dummy_evt)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-04-16 11:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-16 11:16 [newlib-cygwin] Cygwin: FIFO: fix fifo_client_handler::close 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).