Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!linus!linus!mbunix.mitre.org!daf From: daf@cavern.mitre.org (Dennis A. Franciskovich) Newsgroups: comp.windows.x Subject: XtAddInput question Message-ID: <1991Jan18.200129.21797@linus.mitre.org> Date: 18 Jan 91 20:01:29 GMT Sender: news@linus.mitre.org (Linus's News) Distribution: na Organization: SEPTIC FOOLS Lines: 19 Originator: daf@mbunix.mitre.org Nntp-Posting-Host: mbunix.mitre.org If anyone saved or understood the recent discussion about XtAddInput with files, could you please contact me? I didn't pay close attention at the time, and now I've discovered that I'm having the same "problem". Apparently there is a difference when waiting on input for a pipe and when waiting on input from a file. If I wait for input on a pipe (similar to the xbc example in Young's book), my callback is executed only when there is new input on the pipe. If the input source is instead a file, the callback is executed constantly. I recall someone mentioning that when the source is a file, the callback is executed when the file *can* be read, not just when there is new input to read. Replying by email would probably be appropriate, since this was recently discussed. My apologies for duplicating a question. I had wanted to ask about this at the Xt BOF the other day, but that discussion was a bit monopolized. ( 1/2 :-) Dennis daf@cavern.mitre.org