* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Disallow attempts to set
the process group to a nonexistent process group.
This commit is contained in:
parent
2b94cfce89
commit
e3e443e4df
@ -1,3 +1,8 @@
|
|||||||
|
2004-09-28 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Disallow attempts
|
||||||
|
to set the process group to a nonexistent process group.
|
||||||
|
|
||||||
2004-09-27 Corinna Vinschen <corinna@vinschen.de>
|
2004-09-27 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* lib/_cygwin_crt0_common.cc: Revert patch from 2004-09-16. Brakes
|
* lib/_cygwin_crt0_common.cc: Revert patch from 2004-09-16. Brakes
|
||||||
|
@ -67,7 +67,7 @@ fhandler_termios::tcsetpgrp (const pid_t pgid)
|
|||||||
{
|
{
|
||||||
termios_printf ("tty %d pgid %d, sid %d, tsid %d", tc->ntty, pgid,
|
termios_printf ("tty %d pgid %d, sid %d, tsid %d", tc->ntty, pgid,
|
||||||
myself->sid, tc->getsid ());
|
myself->sid, tc->getsid ());
|
||||||
if (myself->sid != tc->getsid ())
|
if (!pid_exists (pgid) || myself->sid != tc->getsid ())
|
||||||
{
|
{
|
||||||
set_errno (EPERM);
|
set_errno (EPERM);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user