* fhandler_process.cc (fhandler_process::fill_filebuf): Open pinfo with
PID_MAP_RW. * sigproc.cc (talktome): Ditto for winpids.
This commit is contained in:
parent
9ee691211b
commit
11dcd1546f
|
@ -1,3 +1,9 @@
|
||||||
|
2003-09-16 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* fhandler_process.cc (fhandler_process::fill_filebuf): Open pinfo with
|
||||||
|
PID_MAP_RW.
|
||||||
|
* sigproc.cc (talktome): Ditto for winpids.
|
||||||
|
|
||||||
2003-09-16 Christopher Faylor <cgf@redhat.com>
|
2003-09-16 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* pinfo.h (winpids::pid_access): New element.
|
* pinfo.h (winpids::pid_access): New element.
|
||||||
|
|
|
@ -245,7 +245,8 @@ out:
|
||||||
bool
|
bool
|
||||||
fhandler_process::fill_filebuf ()
|
fhandler_process::fill_filebuf ()
|
||||||
{
|
{
|
||||||
pinfo p (pid);
|
pinfo p (pid, PID_MAP_RW); // PID_MAP_RW for cmdline since it
|
||||||
|
// needs to signal the other process
|
||||||
|
|
||||||
if (!p)
|
if (!p)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1056,10 +1056,11 @@ stopped_or_terminated (waitq *parent_w, _pinfo *child)
|
||||||
static void
|
static void
|
||||||
talktome ()
|
talktome ()
|
||||||
{
|
{
|
||||||
winpids pids;
|
winpids pids ((DWORD) PID_MAP_RW);
|
||||||
for (unsigned i = 0; i < pids.npids; i++)
|
for (unsigned i = 0; i < pids.npids; i++)
|
||||||
if (pids[i]->hello_pid == myself->pid)
|
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
|
#define RC_MAIN 0
|
||||||
|
|
Loading…
Reference in New Issue