Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-05-22 01:02:52 +0400
committerChristopher Faylor <me@cgf.cx>2006-05-22 01:02:52 +0400
commit8ae1d98d8ee2a0e0813d32aa42f2e584f99d17bf (patch)
treec4a5ce842315220304ac821793a889011679490e /winsup/cygwin/fhandler.h
parent9c9959a5125dda20e76a4e4b36df9386a7b8740f (diff)
* fhandle.h (fhandler_pipe::create_guard): Revert change which eliminated
SECURITY_ATTRIBUTES argument. * pipe.cc (fhandler_pipe::open): Duplicate guard from other process and protect it appropriately. Eliminate unneeded writepipe_exists temporary variable. Set inheritance appropriately. (fhandler_pipe::set_close_on_exec): Revert change which eliminated handling guard inheritance. (fhandler_pipe::fixup_after_fork): Ditto. Use correct name of entity being checked by fork_fixup. (fhandler_pipe::fixup_after_exec): Don't bother with guard here. (fhandler_pipe::dup): Cosmetic changes and revert creation of writepipe_exists as noninheritable. (fhandler_pipe::create): Revert change which eliminated SECURITY_ATTRIBUTES argument. Revert change which always made writepipe_exists noninheritable.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 2bd4bac5a..7fb5411a1 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -513,11 +513,11 @@ public:
void __stdcall read (void *ptr, size_t& len) __attribute__ ((regparm (3)));
int open (int flags, mode_t mode = 0);
int close ();
- void create_guard ()
- {
- guard = CreateMutex (&sec_none, FALSE, NULL);
- ProtectHandleINH (guard);
- }
+ void create_guard (SECURITY_ATTRIBUTES *sa)
+ {
+ guard = CreateMutex (sa, FALSE, NULL);
+ ProtectHandleINH (guard);
+ }
int dup (fhandler_base *child);
int ioctl (unsigned int cmd, void *);
void fixup_in_child ();