🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.rt
Article #1715

Trapping ioctl on pty's in AIX 2.2.1

#1715
From: Heimir Thor Sverrisson
Date: Mon, 24 Apr 1989 14:07
14 lines
916 bytes
Does anyone know how to trap ioctl(2) calls made from the slave side 
of a pty, in a program running on the control side. I've read about
the select(2) call but there seems to be no support for execptions on
pty's.

I have a program running fine reading and writing data on the control-side,
but when a login-shell on the slave side uses 'stty' I get garbage across to
the control-side, and the system seems to hang for a few seconds.

What am I doing wrong here ?

--
Heimir Sverrisson		heimir@rhi.hi.is
NeuroSoft Inc.
Technical Details
Message-ID: <891@krafla.rhi.hi.is>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!hafro!krafla!heimir

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!hafro!krafla!heimir
From: heimir@rhi.hi.is (Heimir Thor Sverrisson)
Newsgroups: comp.sys.ibm.pc.rt
Subject: Trapping ioctl on pty's in AIX 2.2.1
Keywords: pty ioctl AIX
Message-ID: <891@krafla.rhi.hi.is>
Date: 24 Apr 89 14:07:12 GMT
Organization: University of Iceland
Lines: 14