home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.wizards:3792 comp.unix.questions:10725 comp.windows.x:16175
- Newsgroups: comp.unix.wizards,comp.unix.questions,comp.windows.x
- Path: sparky!uunet!mcsun!ieunet!tcdcs!unix1.tcd.ie!acourtny
- From: acourtny@unix1.tcd.ie (Antony A. Courtney)
- Subject: Re: reliable signals under BSD / SVR4
- Message-ID: <acourtny.715602566@unix1.tcd.ie>
- Keywords: signals, reliable, software interrupts
- Sender: usenet@cs.tcd.ie (NN required at ashe.cs.tcd.ie)
- Nntp-Posting-Host: unix1.tcd.ie
- Organization: Trinity College, Dublin
- References: <acourtny.715263267@unix1.tcd.ie> <Btwqvs.LAI@zeus.dialix.oz.au> <acourtny.715556934@unix1.tcd.ie> <1992Sep4.004436.24755@gateway.novell.com>
- Date: Fri, 4 Sep 1992 10:29:26 GMT
- Lines: 34
-
- In <1992Sep4.004436.24755@gateway.novell.com> terry@thisbe.Eng.Sandy.Novell.COM (Terry Lambert) writes:
-
- >In article <acourtny.715556934@unix1.tcd.ie> acourtny@unix1.tcd.ie (Antony A. Courtney) writes:
- >>There are some "hacks" to get around this, if you're environment lets you
- >>write the centralized control loop for the program. But usually SIGIO is
- >>useful in cases where that isn't possible, e.g. when using an X toolkit.
- >
- > Wrong. In XTMainAppLoop() in the X toolkit, there are hooks for
- >adding input sources to be "select()"ed on.
- > [...]
-
- I didn't assert that it was totally impossible, just that it was a
- "hack". Adding extra input sources before passing control to XTMainAppLoop()
- is a bit like saying "take over the control flow and tell me when something
- happens that you understand (X events). Oh, and also please tell me about
- anything else that happens on these descriptors, even though you have no idea
- what they are for and you don't know how to deal with them." I humbly suggest
- that this is hardly what one would call "elegant".
-
- > Read the fine manual.
-
- I have read the fine manual on select() for my Unix system. Too bad X
- toolkits hide "all that underlying system control flow stuff" from me...
-
- > Terry Lambert
- > terry_lambert@gateway.novell.com
-
- -antony
-
- --
- ********************************************************************************
- * Antony A. Courtney Email: acourtny@unix1.tcd.ie *
- * Computer Science Department antony@george.lbl.gov *
- * Trinity College, Dublin, Ireland Phone: 01+353+1-607389 *
-