* pinfo.h (winpids::pid_access): New element.

(winpids::winpids): Rejigger to set pinfo_access.
* pinfo.cc (winpids::add): Try to open shared memory region with supplied
pinfo_access first, then default to readonly.
* fhandler_termios.cc (tty_min::kill_pgrp): When getting list of pids to work
with, suggest opening with PID_MAP_RW.
* signal.cc (kill_pgrp): Ditto.
* sigproc.cc (sig_send): Perform a write check on todo prior to attempting to
increment it.  Return EACCES if we can't write to it.
This commit is contained in:
Christopher Faylor
2003-09-17 01:15:56 +00:00
parent 1498189ca8
commit deb648cc8b
7 changed files with 53 additions and 20 deletions

View File

@@ -247,7 +247,7 @@ kill_pgrp (pid_t pid, int sig)
sigproc_printf ("pid %d, signal %d", pid, sig);
winpids pids;
winpids pids ((DWORD) PID_MAP_RW);
for (unsigned i = 0; i < pids.npids; i++)
{
_pinfo *p = pids[i];