From owner-freebsd-emulation Wed Sep 4 3:57: 3 2002 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5F3037B400 for ; Wed, 4 Sep 2002 03:57:01 -0700 (PDT) Received: from Daffy.timing.com (daffy.timing.com [206.168.13.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1733A43E42 for ; Wed, 4 Sep 2002 03:57:01 -0700 (PDT) (envelope-from jhein@timing.com) Received: from brain.timing.com (brain.timing.com [206.168.13.195]) by Daffy.timing.com (8.11.3/8.11.3) with ESMTP id g84AuvK48920; Wed, 4 Sep 2002 04:56:57 -0600 (MDT) (envelope-from jhein@timing.com) Received: from brain.timing.com (localhost [127.0.0.1]) by brain.timing.com (8.12.2/8.12.2) with ESMTP id g84Aurcq080269; Wed, 4 Sep 2002 04:56:53 -0600 (MDT) (envelope-from jhein@brain.timing.com) Received: (from jhein@localhost) by brain.timing.com (8.12.2/8.12.2/Submit) id g84AunV0080266; Wed, 4 Sep 2002 04:56:49 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15733.59121.143526.699051@brain.timing.com> Date: Wed, 4 Sep 2002 04:56:49 -0600 From: John E Hein To: "Duncan Barclay" Cc: "Mark Santcroos" , Subject: Re: TIOCSCTTY not implemented in linuxulator? In-Reply-To: <000801c253f7$2cae8ea0$6d6020c2@pc598cam> References: <20020904020952.GB7157@dhcp01.pn.xcllnt.net> <20020904064620.GA713@laptop.6bone.nl> <000801c253f7$2cae8ea0$6d6020c2@pc598cam> X-Mailer: VM 7.03 under Emacs 21.1.1 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Duncan Barclay wrote at 10:40 +0100 on Sep 4: > > Hi Duncan, > > > > Can you find out (ktrace) to which devices it is sending these ioctls? > > It's the tty side of a pty/ttp pair. Matlab spawns a subprocess, and it's > the subprocess that issues these ioctls. See this freebsd-emulation thread ("can't quit matlab"): http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&frame=right&th=206ec3e38e06e5d2&seekm=15218.39637.311548.512594_localhost.econ.vt.edu%40ns.sol.net#link1 Note that the 540e is TIOCSCTTY: /usr/src/linux-2.2.19/include/asm-i386/ioctls.h:#define TIOCSCTTY 0x540E Particularly look at the 3rd message in the thread that talks about the /dev/ptmx workaround and unix98 ptys. If someone could solve this, it'd be great. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message