diff options
author | Christopher Faylor <me@cgf.cx> | 2003-09-17 06:10:13 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-09-17 06:10:13 +0400 |
commit | 11dcd1546f348b94a32fb4f8569b1991cb99d036 (patch) | |
tree | 312ddded84eff76cef524891c42b39f33712deee /winsup/cygwin/sigproc.cc | |
parent | 9ee691211b3e29d9a3b69ece65b709cae6855659 (diff) |
* fhandler_process.cc (fhandler_process::fill_filebuf): Open pinfo with
PID_MAP_RW.
* sigproc.cc (talktome): Ditto for winpids.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r-- | winsup/cygwin/sigproc.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index dff073049..6c5393795 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -1056,10 +1056,11 @@ stopped_or_terminated (waitq *parent_w, _pinfo *child) static void talktome () { - winpids pids; + winpids pids ((DWORD) PID_MAP_RW); for (unsigned i = 0; i < pids.npids; i++) if (pids[i]->hello_pid == myself->pid) - pids[i]->commune_recv (); + if (!IsBadWritePtr (pids[i], sizeof (_pinfo))) + pids[i]->commune_recv (); } #define RC_MAIN 0 |