Re: How to get pty slave tty driver signals?
- From: Rainer Weikusat <rweikusat@xxxxxxxxxxx>
- Date: Thu, 07 Feb 2008 19:34:59 +0100
"kdd21@xxxxxxxxxxx" <kdd21@xxxxxxxxxxx> writes:
Am porting an app from SCO 5.0.7 to Red Hat 4. Part of the app
includes a paging terminal driver that allows the user to login from a
special terminal and hit keys that cause it to switch between mutliple
sessions. It uses pseudottys for this purpose.
[...]
So now, on Linux the driver currently works fine with regards to
switching sessions, but none of the session shells recognize any
signalling chars-- the sessions are running bash, and stty from there
shows intr and quit, etc. set, but none of these characters cause the
associated signals to be sent to programs run from the shell. The
ctl-codes are being recieved, as I can, for example, change intr to be
something other than ctl-C and then cat >test and type ctl-C and it
gets written to the file. But when I use stty to configure ctl-C as
intr, nothing gets written to the file but also SIGINT isn't sent to
the shell-spawned programs. The chars are being gobbled up (by what,
I don't know), but do not produce signals being sent to the shell.
[...]
I also note that if I "su - root" from one of these shells, I get a
curious error message that I suppose might be a clue (it generates
this message, though it does switch to root after that):
-bash: no job control in this shell
The reason for this would usually be that std(err|in|out) of the shell
are not connected to a tty. The general way to get this to work is to
have a 'data receiving process' connected to the 'master' part of a
pty and run the inferior/session shell connected to the corresponding
pty slave, see pty(7)/ pts(4).
.
- Follow-Ups:
- Re: How to get pty slave tty driver signals?
- From: kdd21@xxxxxxxxxxx
- Re: How to get pty slave tty driver signals?
- References:
- How to get pty slave tty driver signals?
- From: kdd21@xxxxxxxxxxx
- How to get pty slave tty driver signals?
- Prev by Date: Re: How to get pty slave tty driver signals?
- Next by Date: Re: Example of "epoll" usage?
- Previous by thread: Re: How to get pty slave tty driver signals?
- Next by thread: Re: How to get pty slave tty driver signals?
- Index(es):
Relevant Pages
|