* pinfo.cc (_pinfo::commune_send): Correct debugging output.

This commit is contained in:
Christopher Faylor 2004-10-05 02:10:15 +00:00
parent 1f8b30497d
commit 0190304668
3 changed files with 6 additions and 2 deletions

View File

@ -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.

View File

@ -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;

View File

@ -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;
}