diff options
author | Christopher Faylor <me@cgf.cx> | 2012-04-30 19:38:45 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-04-30 19:38:45 +0400 |
commit | 28c8ae66d5ab61600f7d32d8aabbf9dfbfb3d9f8 (patch) | |
tree | 34b1ba591ba85339f9a9e624ba253d4d12041bee /winsup/cygwin/sigproc.cc | |
parent | c9306c71eddb0cf1f6e3b02cb1d4550331015de1 (diff) |
* fhandler.h (PIPE_ADD_PID): Define new flag.
* pipe.cc (fhandler_pipe::create): Don't indiscriminately add process id to
every pipe since some pipe names (fifo, tty) don't need it.
* sigproc.cc (sigproc_init): Pass PIPE_ADD_PID to fhandler_pipe::create to
ensure that pid is always part of sigwait pipe name.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r-- | winsup/cygwin/sigproc.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 93fc75b11..c9a76d85f 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -529,7 +529,8 @@ sigproc_init () char char_sa_buf[1024]; PSECURITY_ATTRIBUTES sa = sec_user_nih ((PSECURITY_ATTRIBUTES) char_sa_buf, cygheap->user.sid()); DWORD err = fhandler_pipe::create (sa, &my_readsig, &my_sendsig, - sizeof (sigpacket), "sigwait", 0); + sizeof (sigpacket), "sigwait", + PIPE_ADD_PID); if (err) { SetLastError (err); |