delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/08/16/09:10:09

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: Pipes interfere with terminal output under coolview 970810
16 Aug 1997 09:10:09 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <01BCAA5E.5DF227D0.cygnus.gnu-win32@sos>
Original-To: gnu-win32 <gnu-win32 AT cygnus DOT com>,
"'Michael A. Chase'"
<mchase AT ix DOT netcom DOT com>
Encoding: 26 TEXT
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Michael A. Chase wrote:
> When I use a pipe on the command line, the results from the final command
> do not appear on the display.  I can send the output to a file.
> 
> I'm using WinNt 4.0 SP3, gnuwin32 b18, and coolview dated 970810.  The
> problem goes away when I reinstall the cgywin.dll dated 970731.

Fixed.

diff -ur /winsup/dcrt0.cc winsup/dcrt0.cc
--- /winsup/dcrt0.cc    Tue Aug 12 23:46:29 1997
+++ winsup/dcrt0.cc     Sat Aug 16 12:45:35 1997
@@ -671,7 +671,7 @@
     }

   /* Kill the foreground process group on session leader exit */
-  if (getpid () == u->self->sid && u->self->ctty != -1)
+  if (getpgrp () > 0 && getpid () == u->self->sid && u->self->ctty != -1)
     {
       tty *ttyp = s->t.gettty (u->self->ctty);


-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019