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

  1. Xref: sparky comp.unix.wizards:3787 comp.unix.questions:10713
  2. Newsgroups: comp.unix.wizards,comp.unix.questions
  3. Path: sparky!uunet!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!park.uvcc.edu!ns.novell.com!gateway.novell.com!thisbe.Eng.Sandy.Novell.COM!terry
  4. From: terry@thisbe.Eng.Sandy.Novell.COM (Terry Lambert)
  5. Subject: Re: reliable signals under BSD / SVR4
  6. Message-ID: <1992Sep4.004436.24755@gateway.novell.com>
  7. Keywords: signals, reliable, software interrupts
  8. Sender: news@gateway.novell.com (NetNews)
  9. Nntp-Posting-Host: thisbe.eng.sandy.novell.com
  10. Organization: Novell NPD -- Sandy, UT
  11. References: <acourtny.715263267@unix1.tcd.ie> <Btwqvs.LAI@zeus.dialix.oz.au> <acourtny.715556934@unix1.tcd.ie>
  12. Date: Fri, 4 Sep 1992 00:44:36 GMT
  13. Lines: 25
  14.  
  15. In article <acourtny.715556934@unix1.tcd.ie> acourtny@unix1.tcd.ie (Antony A. Courtney) writes:
  16. >There are some "hacks" to get around this, if you're environment lets you
  17. >write the centralized control loop for the program.  But usually SIGIO is
  18. >useful in cases where that isn't possible, e.g. when using an X toolkit.
  19.  
  20.     Wrong.  In XTMainAppLoop() in the X toolkit, there are hooks for
  21. adding input sources to be "select()"ed on.  Since this is the toolkit used
  22. to build most other toolkits (ie: Motif), this works there also.  The
  23. routines of interest are:
  24.  
  25.     XtAddInput()
  26.     XtAppAddInput()
  27.     XtRemoveInput()
  28.     XtRemoveAllInputs()
  29.  
  30.     Read the fine manual.
  31.  
  32.  
  33.                     Terry Lambert
  34.                     terry_lambert@gateway.novell.com
  35.                     terry@icarus.weber.edu
  36.  
  37. ---
  38. Disclaimer:  Any opinions in this posting are my own and not those of
  39. my present or previous employers.
  40.