Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Aug 1996 19:16:00 +0200
From:      roberto@keltia.freenix.fr (Ollivier Robert)
To:        bde@zeta.org.au (Bruce Evans)
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Weird pty problem
Message-ID:  <199608121716.TAA01064@keltia.freenix.fr>
In-Reply-To: <199608120744.RAA01049@godzilla.zeta.org.au>; from Bruce Evans on Aug 12, 1996 17:44:17 %2B1000
References:  	<199608120744.RAA01049@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
According to Bruce Evans:
> This is more reasonable.  It might be waiting for output to drain,
> and something bad has happened to ptyp8.
> 
> Does it really only happen for pty #8?

Yes.
 
> Is ptyp8 open?  (Look for it with fstat or lsof.)

Before it fails no. 

I've tried to use it again by launching an xterm with mutt as command. 

The state is:

  ttyp8  0   0   0 1296 256     108 OCZ  de1580 12923 term

330 [19:10] root@keltia:/dev# lsof /dev/ptyp8
COMMAND   PID   USER   FD   TYPE       DEVICE   SIZE/OFF   INODE NAME
xterm    1029   root    4u  VCHR     6,     8        0t0    3373 /dev/ptyp8

331 [19:10] root@keltia:/dev# lsof /dev/ttyp8
COMMAND   PID     USER   FD   TYPE       DEVICE   SIZE/OFF   INODE NAME
tcsh     1030  roberto   17u  VCHR     5,     8        0t0    4052 /dev/ttyp8
tcsh     1030  roberto   18u  VCHR     5,     8        0t0    4052 /dev/ttyp8
tcsh     1030  roberto   19u  VCHR     5,     8        0t0    4052 /dev/ttyp8
mutt     1032  roberto    0u  VCHR     5,     8        0t0    4052 /dev/ttyp8
mutt     1032  roberto    1u  VCHR     5,     8        0t0    4052 /dev/ttyp8
mutt     1032  roberto    2u  VCHR     5,     8        0t0    4052 /dev/ttyp8

Processes are:

  101  1030  1029   9  18  0   940  640 pause  Is    ??    0:00.30 /sbin/tcsh /usr/local/bin/run-mutt -f =lists/trn-test
  101  1032  1030 305 104  0   484  964 -      R     ??    1:46.47 /usr/local/bin/mutt -f =lists/trn-test

I just don't understand why.  If I exit X11  and reenter it, it will  maybe
work   the for  first command   that  ook on  ttyp8 and   then  it  will be
unavailable. 

-- 
Ollivier ROBERT    -=- The daemon is FREE! -=-    roberto@keltia.freenix.fr
FreeBSD keltia.freenix.fr 2.2-CURRENT #17: Fri Aug  2 20:40:17 MET DST 1996



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608121716.TAA01064>