[prev in list] [next in list] [prev in thread] [next in thread]
List: netbsd-users
Subject: Re: programming with pty(4)
From: christos () astron ! com (Christos Zoulas)
Date: 2012-05-31 21:45:47
Message-ID: jq8oqa$3lg$1 () dough ! gmane ! org
[Download RAW message or body]
In article <20120531120352.4c293fba@viola.nmsu.edu>,
Brook Milligan <brook@nmsu.edu> wrote:
>I have a program that opens a pty(4) on a NetBSD box and reads/writes on
>the master side. I can connect to the slave side with tip(1) and
>communicate perfectly with the master side of the pty(4). However, if
>I disconnect tip(1) with ~^D and try to reconnect, tip(1) reports a
>'Device busy' error. Presumably, I need to detect the fact that tip(1)
>disconnected and do something to the pty(4) device in order to allow a
>later connection, but I'm not sure (i) how to detect the disconnection
>and (ii) what to do when it happens.
>
>Any help with programming pty(4) devices is greatly appreciated.
Are you using BSD pty's or PTYFS?
christos
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic