Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!sunic!ugle.unit.no!lilje.uib.no!eik.ii.uib.no!usenet From: jeremy@eik.ii.uib.no (Jeremy Cook) Newsgroups: comp.unix.programmer Subject: How to get signal interrupt on file descriptor ? Message-ID: <1991Apr28.131258.25761@eik.ii.uib.no> Date: 28 Apr 91 13:12:58 GMT Sender: usenet@eik.ii.uib.no (Usenet posting account) Reply-To: jeremy@eik.ii.uib.no (Jeremy Cook) Organization: Institute of Informatics, University of Bergen, Norway Lines: 16 I need to write a program which will read from file descriptors - in one case a pipe and in another a socket. I would prefer to let the program run passively and not have to poll the file descriptors to see when there's data to be read, and I see that there's a SIGIO signal which has something to do with i/o on file descriptors. Is there any way that I can make use of SIGIO (or any other signal for that matter) to serve incomming data from file descriptors ? Just putting 'signal(SIGIO, doit)' in my code didn't work - what else do I need to do ? Jeremy Cook, email : jeremy@eik.ii.uib.no | phone : +47 5 54 41 74 (direct) Parallel Processing Laboratory, University of Bergen, High Technology Centre, N-5020 Bergen,Norway