Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-10-05 06:10:15 +0400
committerChristopher Faylor <me@cgf.cx>2004-10-05 06:10:15 +0400
commit019030466858b5db7b844ce754aa0305ea199f8e (patch)
tree79a2aae44b8fd48ff245dc1127575f46839bc431 /winsup/cygwin/fhandler_termios.cc
parent1f8b30497dba80363a1e10af5dd7366156456a0e (diff)
* pinfo.cc (_pinfo::commune_send): Correct debugging output.
Diffstat (limited to 'winsup/cygwin/fhandler_termios.cc')
-rw-r--r--winsup/cygwin/fhandler_termios.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_termios.cc b/winsup/cygwin/fhandler_termios.cc
index 4f1ce3e07..73032db46 100644
--- a/winsup/cygwin/fhandler_termios.cc
+++ b/winsup/cygwin/fhandler_termios.cc
@@ -67,7 +67,7 @@ fhandler_termios::tcsetpgrp (const pid_t pgid)
{
termios_printf ("tty %d pgid %d, sid %d, tsid %d", tc->ntty, pgid,
myself->sid, tc->getsid ());
- if (!pid_exists (pgid) || myself->sid != tc->getsid ())
+ if ((pgid != myself->pgid && !pid_exists (pgid)) || myself->sid != tc->getsid ())
{
set_errno (EPERM);
return -1;