home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / wizards / 3792 < prev    next >
Encoding:
Internet Message Format  |  1992-09-04  |  2.3 KB

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