From 019030466858b5db7b844ce754aa0305ea199f8e Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 5 Oct 2004 02:10:15 +0000 Subject: [PATCH] * pinfo.cc (_pinfo::commune_send): Correct debugging output. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/fhandler_termios.cc | 2 +- winsup/cygwin/pinfo.cc | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7d8b0cbb3..7aa27ee79 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2004-10-05 Bas van Gompel + + * pinfo.cc (_pinfo::commune_send): Correct debugging output. + 2004-10-04 Christopher Faylor * include/cygwin/signal.h: Add siginterrupt definition. 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; diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 1ed4f0a7c..829db2ad4 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -501,7 +501,7 @@ _pinfo::commune_send (DWORD code, ...) } if (!CreatePipe (&fromme, &tothem, &sec_all_nih, PIPEBUFSIZE)) { - sigproc_printf ("first CreatePipe failed, %E"); + sigproc_printf ("second CreatePipe failed, %E"); __seterrno (); goto err; } -- 2.43.5