From owner-freebsd-hackers Mon Aug 12 11:33:45 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA04401 for hackers-outgoing; Mon, 12 Aug 1996 11:33:45 -0700 (PDT) Received: from mexico.brainstorm.eu.org (root@mexico.brainstorm.eu.org [193.56.58.253]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA04389 for ; Mon, 12 Aug 1996 11:33:38 -0700 (PDT) Received: from brasil.brainstorm.eu.org (brasil.brainstorm.eu.org [193.56.58.33]) by mexico.brainstorm.eu.org (8.7.5/8.7.3) with ESMTP id UAA02681; Mon, 12 Aug 1996 20:32:43 +0200 Received: (from uucp@localhost) by brasil.brainstorm.eu.org (8.6.12/8.6.12) with UUCP id UAA18237; Mon, 12 Aug 1996 20:32:09 +0200 Received: (from roberto@localhost) by keltia.freenix.fr (8.8.Alpha.7/keltia-uucp-2.9) id TAA01064; Mon, 12 Aug 1996 19:16:00 +0200 (MET DST) Message-Id: <199608121716.TAA01064@keltia.freenix.fr> 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 In-Reply-To: <199608120744.RAA01049@godzilla.zeta.org.au>; from Bruce Evans on Aug 12, 1996 17:44:17 +1000 References: <199608120744.RAA01049@godzilla.zeta.org.au> X-Mailer: Mutt 0.39 Mime-Version: 1.0 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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