home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 3999 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.3 KB

  1. Path: sparky!uunet!psinntp!bacon!chuck
  2. From: chuck@IMSI.COM (Chuck Ocheret)
  3. Newsgroups: comp.unix.programmer
  4. Subject: Re: Help! Output going everywhere...
  5. Keywords: pipes, widgets, children
  6. Message-ID: <4558@bacon.IMSI.COM>
  7. Date: 28 Jul 92 19:12:39 GMT
  8. References: <1992Jul24.040517.3375@tc.cornell.edu>
  9. Sender: news@bacon.IMSI.COM
  10. Organization: Investment Management Services Inc., NYC
  11. Lines: 20
  12.  
  13. In article <1992Jul24.040517.3375@tc.cornell.edu> reed@theory.tc.cornell.edu writes:
  14. >
  15. >...  Now the real problem.  How do I get it out
  16. >if I am hung up in an XtMainLoop call (or do I need to change to something
  17. >else [gasp! handle my own events????])?  I thought of using a SIGIO signal
  18. >handler...
  19.  
  20. Eek! Don't use a signal handler for *anything* if you can avoid it.  Xt
  21. is not especially signal clean.  It is not safe or portable to make Xt
  22. calls from withing a signal handler (or many other calls for that
  23. matter).  Once you have the file descriptor you want to read from call
  24. XtAppAddInput().  This is precisely the type of thing the Xt founding
  25. fathers (and mothers) had in mind when they provided it.
  26.  
  27. ~chuck
  28. -- 
  29.  Chuck Ocheret, Director of Technology | (212)339-2784 phone
  30.         Investment Management Services | (212)339-2845 fax
  31.          12 E. 49th Street, 35th Floor | chuck@IMSI.COM
  32.                 New York, NY 10017 USA | uupsi!bacon!chuck || uunet!bacon!chuck
  33.