Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!wuarchive!udel!burdvax!dowding From: dowding@PRC.Unisys.COM (John Dowding) Newsgroups: comp.windows.x Subject: Handling other input sources Keywords: XtAddInput Message-ID: <11903@burdvax.PRC.Unisys.COM> Date: 2 Nov 89 00:07:38 GMT Sender: news@PRC.Unisys.COM Lines: 14 I am working on a program using multiple processes and pipes. Using Young's book (X Window Systems Programming and Applications with Xt), I built a prototype using XtAddInput (based on his example in section 5.8, pgs. 141-151). By putting a print statement at the top of the input callback, I found that it is being called continually, not just when new input appears on the pipe. Since this amounts to constantly polling the pipe for data, this is very inefficient. Does anyone know why this is happening or how to fix it? Thanks, John Dowding dowding@prc.unisys.com