From 11dcd1546f348b94a32fb4f8569b1991cb99d036 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 17 Sep 2003 02:10:13 +0000 Subject: * fhandler_process.cc (fhandler_process::fill_filebuf): Open pinfo with PID_MAP_RW. * sigproc.cc (talktome): Ditto for winpids. --- winsup/cygwin/sigproc.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/sigproc.cc') 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 -- cgit v1.2.3