This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Pipes interfere with terminal output under coolview 970810


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@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]