Path: utzoo!attcan!uunet!munnari.oz.au!uokmax!apple!agate!ucbvax!unisoft!rembo From: rembo@unisoft.UUCP (Tony Rems) Newsgroups: comp.unix.programmer Subject: Re: Hey, what about SIGIO? Message-ID: <3139@unisoft.UUCP> Date: 27 Sep 90 23:19:47 GMT References: Reply-To: rembo@unisoft.UUCP (Tony Rems) Distribution: comp Lines: 29 In article lush@EE.MsState.Edu (Edward Luke) writes: > >In signal.h there is a signal defined as: >#define SIGIO 23 /* input/output possible signal */ > > >I have an application that will be doing computations, asynchronously >with this I would like to get a signal when new data arrives on an >input file descriptor, or when an output file descriptor is free to be >filled again. Is it possible for me to do this without using fork() >to start another process to monitor the file descriptor? Can I tell >the OS to give me a SIGIO when there is a pending condition on a >socket? Just what is the SIGIO signal for? > Try the select(2) system call on BSD or SVR4 or the poll(2) system call on any SVR3 or greater and this should do what you want. -Tony ----------------------------------------------------- Somedays, it doesn't pay to get out of bed. NOTE: My opinions are barely my own much less my employers'. -----------------------------------------------------