Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!msuinfo!convex.cl.msu.edu!jap From: jap@convex.cl.msu.edu (Joe Porkka) Newsgroups: comp.sys.amiga.programmer Subject: Re: WaitIO which waits also on CTRL-C wanted Message-ID: <1991Apr9.221540.28520@msuinfo.cl.msu.edu> Date: 9 Apr 91 22:15:40 GMT References: <1991Apr9.115224.2842@forwiss.uni-passau.de> Sender: news@msuinfo.cl.msu.edu Organization: Michigan State University Lines: 26 hessmann@r2d2.fmi.uni-passau.de (Georg Hessmann) writes: >Hi, >Has someone written a WaitIO function, which waits on the >IO *and* on CTRL-C ? Nope it aint possible. However, you can use Wait(), the much more general function. #include /* Perhaps dosextens too */ mask = SIGBREAKF_CTRL_C | (1 << mymsgport->mp_SigBit); bits = Wait(mask); if(bits & SIGBREAKF_CTRL_C) { handle ctrl c } Where mymsgport is the port that you are expecting your IO message to come back on. Generally, the only time I use WaitIO is for: AbortIO(foo); WaitIO(foo);