Re: How to get pty slave tty driver signals?



"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).

.



Relevant Pages

  • How to get pty slave tty driver signals?
    ... switching sessions, but none of the session shells recognize any ... but do not produce signals being sent to the shell. ...
    (comp.os.linux.development.apps)
  • Re: How to get pty slave tty driver signals?
    ... special terminal and hit keys that cause it to switch between mutliple ... switching sessions, but none of the session shells recognize any ... but do not produce signals being sent to the shell. ...
    (comp.os.linux.development.apps)
  • Re: Logging Shell Activity
    ... > linux machine that will be accessible through the Internet. ... > all the shell activity, so if the machine became compromised, I would know ... sessions over the serial port will require a great deal of thought to ... You can run a shell under control of the 'script' utility and ...
    (alt.os.linux)
  • Re: Logging Shell Activity
    ... >> linux machine that will be accessible through the Internet. ... >> all the shell activity, so if the machine became compromised, I would ... > sessions over the serial port will require a great deal of thought to ... > You can run a shell under control of the 'script' utility and ...
    (alt.os.linux)
  • Re: UB micro stakes
    ... switch. ... I seemed to play better than the sessions when I couldn't lose, ... Obviously, it could just be a turn of luck, or maybe my play has a new leak ... theory that they make newbies winners for a while, then take the money away. ...
    (rec.gambling.poker)