diff options
author | Christopher Faylor <me@cgf.cx> | 2005-04-16 05:20:01 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-04-16 05:20:01 +0000 |
commit | 06e18175e0fef5cda73bb1c0a9697e81ed28732a (patch) | |
tree | c524d1098dc512e84275fc72b9474e246f7992a5 /winsup/cygwin/pipe.cc | |
parent | f40d6122ff203b48d23182ac3c70727ed694f205 (diff) | |
download | cygnal-06e18175e0fef5cda73bb1c0a9697e81ed28732a.tar.gz cygnal-06e18175e0fef5cda73bb1c0a9697e81ed28732a.tar.bz2 cygnal-06e18175e0fef5cda73bb1c0a9697e81ed28732a.zip |
* fhandler.cc (fhandler::dup): Duplicate flags, too.
* fhandler.h (fhandler_fifo::owner): Eliminate.
* fhandler_disk_file.cc (fhandler_base::fstat_fs): Handle on-disk devices
better.
(fhandler_base::fstat_helper): Ditto.
* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Don't initialize obsolete
"owner".
(fhandler_fifo::open_not_mine): Add some debugging. Duplicate correct handle
when we own it.
(fhandler_fifo::open): Set flags from input, not from first pipe. Flag that
fork fixup is needed.
(fhandler_fifo::dup): Set errno correctly when DuplicateHandle fails.
* pinfo.cc (commune_send): Add debugging for fifo.
* cygwin/version.h: Bump API minor version to 127 to reflect exporting of
sigrelese.
Diffstat (limited to 'winsup/cygwin/pipe.cc')
-rw-r--r-- | winsup/cygwin/pipe.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc index 4bdb1e8c1..aed84e08d 100644 --- a/winsup/cygwin/pipe.cc +++ b/winsup/cygwin/pipe.cc @@ -237,6 +237,7 @@ fhandler_pipe::fixup_after_exec () void fhandler_pipe::fixup_after_fork (HANDLE parent) { +debug_printf ("here"); fhandler_base::fixup_after_fork (parent); if (guard) fork_fixup (parent, guard, "guard"); @@ -259,7 +260,6 @@ fhandler_pipe::dup (fhandler_base *child) goto err; } - /* FIXME: This leaks handles in the failing condition */ if (guard == NULL) ftp->guard = NULL; else if (!DuplicateHandle (hMainProc, guard, hMainProc, &ftp->guard, 0, 1, |