From owner-freebsd-current Fri Mar 27 23:52:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA17784 for freebsd-current-outgoing; Fri, 27 Mar 1998 23:52:04 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA17753 for ; Fri, 27 Mar 1998 23:52:00 -0800 (PST) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.8/8.8.8) id CAA00477; Sat, 28 Mar 1998 02:51:26 -0500 (EST) (envelope-from toor) Message-Id: <199803280751.CAA00477@dyson.iquest.net> Subject: Re: aio not working in FreeBSD 3.0-971208-SNAP In-Reply-To: <199802091523.KAA26931@dwarpal.in.oracle.com> from "HARAWAT.IN.ORACLE.COM" at "Feb 9, 98 06:04:47 pm" To: HARAWAT.IN.oracle.com.ofcmail@in.oracle.com (HARAWAT.IN.ORACLE.COM) Date: Sat, 28 Mar 1998 02:51:21 -0500 (EST) Cc: freebsd-current@FreeBSD.ORG From: "John S. Dyson" Reply-To: dyson@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG HARAWAT.IN.ORACLE.COM said: > After registering the aio_read fn, SIGIO signal is generated but the > aiocntl_blk->_aiocb_private.status is -1,and aiocntl_blk->_aiocb_private.errno > is EINPROGRESS, aslo the values is the buffer shows the contents that were to > be read, probably the user space values of status and errno fields of the > aiocb_t are not updated. > The code looks okay... Are you accessing the private members of the local data structures? The correct way is to use aio_error. -- John | Never try to teach a pig to sing, dyson@freebsd.org | it just makes you look stupid, jdyson@nc.com | and it irritates the pig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message