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-03-24 02:58:52 +0300
committerChristopher Faylor <me@cgf.cx>2006-03-24 02:58:52 +0300
commitf12c262a43627cad865664b80102a686c44aae15 (patch)
tree2bf8608f5ad0bacbfd0dd3c969199cb2b34b2b2c /winsup/cygwin/pinfo.cc
parent3eb92a58f851da461193a1bbb8b577868355cfb6 (diff)
* fhandler_console.cc (fhandler_console::fixup_after_fork_exec): Make error
message more explicit. * pinfo.cc (_pinfo::commune_request): Don't lock process unless we're looking for fifos.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r--winsup/cygwin/pinfo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index 6c9cdab16..8aeaa64bb 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -603,7 +603,6 @@ _pinfo::commune_request (__uint32_t code, ...)
break;
}
- lock_process now ();
locked = true;
char name_buf[CYG_MAX_PATH];
request_sync = CreateSemaphore (&sec_none_nih, 0, LONG_MAX,
@@ -652,6 +651,7 @@ _pinfo::commune_request (__uint32_t code, ...)
break;
case PICOM_FIFO:
{
+ lock_process now ();
DWORD x = ReadFile (fromthem, res.handles, sizeof (res.handles), &nr, NULL);
if (!x || nr != sizeof (res.handles))
{