summaryrefslogtreecommitdiffstats
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-10-05 02:10:15 +0000
committerChristopher Faylor <me@cgf.cx>2004-10-05 02:10:15 +0000
commit019030466858b5db7b844ce754aa0305ea199f8e (patch)
tree79a2aae44b8fd48ff245dc1127575f46839bc431 /winsup
parent1f8b30497dba80363a1e10af5dd7366156456a0e (diff)
downloadcygnal-019030466858b5db7b844ce754aa0305ea199f8e.tar.gz
cygnal-019030466858b5db7b844ce754aa0305ea199f8e.tar.bz2
cygnal-019030466858b5db7b844ce754aa0305ea199f8e.zip
* pinfo.cc (_pinfo::commune_send): Correct debugging output.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/fhandler_termios.cc2
-rw-r--r--winsup/cygwin/pinfo.cc2
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 <cygwin-patch.buzz@bavag.tmfweb.nl>
+
+ * pinfo.cc (_pinfo::commune_send): Correct debugging output.
+
2004-10-04 Christopher Faylor <cgf@timesys.com>
* 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;
}