Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!decwrl!pyramid!hplabs!well!ewhac From: ewhac@well.UUCP Newsgroups: net.micro.amiga Subject: Re: Q on AbortIO() Message-ID: <1174@well.UUCP> Date: Thu, 29-May-86 04:51:03 EDT Article-I.D.: well.1174 Posted: Thu May 29 04:51:03 1986 Date-Received: Sat, 31-May-86 04:45:44 EDT References: <8605232153.AA01439@pavepaws> <297@cbmvax.cbmvax.cbm.UUCP> Reply-To: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Organization: Whole Earth Lectronic Link, Sausalito CA Lines: 43 Keywords: WaitIO() Summary: Are you *ABSOLUTELY* sure?? -- REPLACE THIS LINE WITH ANOTHER EXACLY LIKE IT -- In article <297@cbmvax.cbmvax.cbm.UUCP> randy@cbmvax.UUCP (Randy Weiner) writes: >In article <8605232153.AA01439@pavepaws> dillon@PAVEPAWS.BERKELEY.EDU.UUCP writes: >> Ok, AbortIO() Fails when the request has already completed. My >>question is, when I call AbortIO() and it fails, will it still remove the >>request from the reply port? or do I still have to WaitIO() ?????? >> > AbortIO only removes the request from the device queue, not >from the reply queue. A reply is posted as if the IO had completed. >The FLAG field is set to indicate an error (non-zero) and the IO_ERROR >field has the IOERR_ABORTED bit set. > > In this case, since the request has already completed, the >AbortIO fails and the flag field is 0. You should receive your reply >in the expected fashion, meaning WaitIO should catch the almost >aborted but completed request. You must still remove the reply >(GetMsg(xxx)) yourself as WaitIO never removes a reply. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > [ ... ] WHAT??!! Are you *ABSOLUTELY* sure about this one? I distinctly remember reading in the RKM that WaitIO() does use the reply port: -------- Excerpt from Rom Kernel Manual, version >> 1.0 <<, p. 6-6 WaitIO, as with DoIO, also internally uses the ReplyPort. If you use WaitIO, it will not be necessary to use GetMsg after your task awakens. -------- Yes, I still have my 1.0 manual; it has some things in it (believe it or not) that don't appear in the 1.1 manual, such as the above clarification on how I/O works. Please, Commodore. Try to be correct. It *IS* your machine, after all. If I'm wrong, feel free to flame me. _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Leo L. Schwab ihnp4!ptsfa!well!ewhac ..or.. I don't work for anybody, well ---\ so I don't need disclaimers! dual ----> !unicom!ewhac hplabs -/ ("AE-wack")