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