home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.internals:1633 comp.unix.questions:9585
- Path: sparky!uunet!ogicse!psgrain!hippo!ucthpx!aim1!aim1!gram
- From: gram@aim1.aztec.co.za (Graham Wheeler)
- Newsgroups: comp.unix.internals,comp.unix.questions
- Subject: Re: Termio ioctls panicking system! Help!
- Message-ID: <gram.712502042@aim1>
- Date: 30 Jul 92 13:14:02 GMT
- Article-I.D.: aim1.gram.712502042
- References: <gram.711971201@aim1> <gram.712252068@aim1> <154662INNo9k@smurf.smurf.sub.org>
- Organization: Aztec Information Management
- Lines: 48
-
- urlichs@smurf.sub.org (Matthias Urlichs) writes:
-
- >In comp.unix.internals, article <gram.712252068@aim1>,
- > gram@aim1.aztec.co.za (Graham Wheeler) writes:
- ><
- >< I still would like to know why ldterm passes these ioctls on after I send
- >< it a DO_CANON message from my driver. Also, although the system no longer
-
- >It has to. Keep in mind that you also have to set the baud rate et al.
- >There's no way to do this from a line discipline!
-
- Yup, after carefully re-reading the ldterm docs I noticed that it does pass
- the ioctl on. However, I still have a problem (as you would have noticed from
- my other postings). The TCGETA ioctl that is passed to my driver has no
- attached buffer (that is, mp->b_cont is NULL). If I acknowledge this ioctl,
- (and whether or not I actually allocate space for a termio structure myself),
- my entire OS dies (no panic, just silence). I can understand it killing the
- connection, or hanging that connection, but for the whole OS to just expire
- is a bit excessive, IMHO.
-
- In the case when I allocated a termio structure myself in a message
- continuation block, I was still just filling this with zeros. Perhaps this
- is enough to kill a UNIX system; if so, that is quite disturbing. I will
- try this again and put in some more sensible values, particularly for the
- c_cflag field, and see what happens - it could well work.
-
- I will keep the net posted with my progress with this problem, as I think
- it is of general interest to STREAMS users.
-
- BTW, my postings in the last few days have been quite vitriolic at times.
- This is a reflection of the frustration I have been feeling at being unable
- to make any headway with these problems for the last two weeks. Don't get me
- wrong; I think UNIX, and STREAMS, are great (I *did* ask my boss, in jest,
- when we were going to go OS/2 ;-) ). I just think the STREAMS
- documentation has got a hell of a lot of room for improvement. It comes
- across as a patchwork that has been added to as STREAMS has developed,
- but actually should be rewritten from scratch so that one doesn't have to
- be a detective to work out the finer points. I hope I haven't offended
- anyone too much with my complaints.
-
- Yours slightly mollified
- Graham
-
- --
- Graham Wheeler | "That which is weak conquers the strong,
- Software Systems Engineer/Student | that which is soft conquers the hard."
- Aztec Information Management/UCT | Lao Tzu - Tao Te Ching Ch. 78
- gram@aim1.aztec.co.za / gram@cs.uct.ac.za
-