🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #916

Re: Hey, what about SIGIO?

#916
From: Tony Rems
Date: Thu, 27 Sep 1990 23:19
29 lines
1446 bytes
In article <LUSH.90Sep26102017@athena0.EE.MsState.Edu> 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'.

-----------------------------------------------------
Technical Details
Message-ID: <3139@unisoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!munnari.oz.au!uokmax!apple!agate!ucbvax!unisoft!rembo
References: <LUSH.90Sep26102017@athena0.EE.MsState.Edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <LUSH.90Sep26102017@athena0.EE.MsState.Edu>
Reply-To: rembo@unisoft.UUCP (Tony Rems)
Distribution: comp
Lines: 29