delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/08/17/14:24:38

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-developers-unsubscribe-archive-cygwin-developers=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-ID: <19990817142352.B10229@ba.best.com>
Date: Tue, 17 Aug 1999 14:23:52 -0400
From: Glenn Spell <glenn AT gs DOT fay DOT nc DOT us>
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: Terminal handling with the 990809 snapshot
Mail-Followup-To: cygwin-developers AT sourceware DOT cygnus DOT com
References: <19990810210956 DOT A15706 AT ba DOT best DOT com>
Mime-Version: 1.0
X-Mailer: Mutt 0.93.2i
In-Reply-To: <19990810210956.A15706@ba.best.com>; from "Glenn Spell" on Tue, Aug 10, 1999 at 09:09PM
Organization: the aerie

This is an update on the problems using 'screen' with the
latest snapshots.

The problem I reported where the display does not update
properly started with a change in select.cc. If I revert
that change with the patch below, that problem goes away.

But then, the 'screen' processes don't die when 'screen'
terminates.


--- select.cc.ORIG	Fri Aug 13 14:22:36 1999
+++ select.cc		Tue Aug 17 04:28:16 1999
@@ -375,13 +375,6 @@ peek_pipe (select_record *s, int ignra)
   int gotone = 0;
   fhandler_base *fh = s->fh;
 
-  if (fh->get_device () == FH_TTYS && myself->pgid &&
-      ((fhandler_tty_slave *)fh)->get_ttyp ()->getpgid () != myself->pgid)
-    {
-      gotone = s->read_ready = 1;
-      goto out;
-    }
-
   if (!ignra && fh->get_readahead_valid ())
     {
       select_printf ("readahead");


BASH-2.03$ ps -al
       PID     PPID     PGID   WINPID  UID TTY    STIME COMMAND
      1000     1000     1000 4294718189  500   0 13:50:59 /BIN/SSH.EXE
      1003     1003     1003 4294821861  500   1 14:18:31 /USR/BIN/BASH.EXE
      1005     1003     1005 4294825057  500   1 14:18:52 /BIN/SCREEN.EXE
      1006     1005     1006 4294824073  500  -1 14:18:52 /BIN/SCREEN.EXE
      1007     1006     1007 4294763153  500   2 14:18:53 /USR/BIN/BASH.EXE
      1008     1006     1008 4294758685  500   3 14:18:54 /USR/BIN/BASH.EXE
      1009     1006     1009 4294534281  500   4 14:18:56 /USR/BIN/BASH.EXE
      1010     1006     1010 4294762441  500   5 14:18:57 /USR/BIN/BASH.EXE
      1011     1010     1011 4294578697  500   5 14:19:08 /USR/BIN/PS.EXE
BASH-2.03$
[screen is terminating]
BASH.EXE-2.03$ ps -al
       PID     PPID     PGID   WINPID  UID TTY    STIME COMMAND
      1000     1000     1000 4294718189  500   0 13:50:59 /BIN/SSH.EXE
      1003     1003     1003 4294821861  500   1 14:18:31 /USR/BIN/BASH.EXE
      1007        1     1007 4294763153  500   2 14:18:53 /USR/BIN/BASH.EXE
      1008        1     1008 4294758685  500   3 14:18:54 /USR/BIN/BASH.EXE
      1009        1     1009 4294534281  500   4 14:18:56 /USR/BIN/BASH.EXE
      1010        1     1010 4294762441  500   5 14:18:57 /USR/BIN/BASH.EXE
      1012     1003     1012 4294745245  500   1 14:20:02 /USR/BIN/PS.EXE
BASH.EXE-2.03$

What does this mean?

-glenn

-- 
 )      Glenn Spell <glenn AT gs DOT fay DOT nc DOT us>      )   _       _____
 )   Fayetteville, North Carolina, U. S. A.   )_ (__\____o /_/_ |
 )  _  _  _  _  _  _  _  _  _  _  _  _  _  _  )   >-----._/_/__]>
 )- blue skies - happy trails - sweet dreams -)             `0  |

- Raw text -


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