From owner-freebsd-hackers Tue Mar 5 22: 2:46 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rylos.atmos.colostate.edu (rylos.atmos.colostate.edu [129.82.48.47]) by hub.freebsd.org (Postfix) with ESMTP id 97AEE37B402 for ; Tue, 5 Mar 2002 22:02:44 -0800 (PST) Received: from localhost (tarcieri@localhost) by rylos.atmos.colostate.edu (8.11.6/8.11.3) with ESMTP id g2663bp48042 for ; Tue, 5 Mar 2002 23:03:37 -0700 (MST) (envelope-from tarcieri@atmos.colostate.edu) X-Authentication-Warning: rylos.atmos.colostate.edu: tarcieri owned process doing -bs Date: Tue, 5 Mar 2002 23:03:36 -0700 (MST) From: Tony Arcieri To: freebsd-hackers@freebsd.org Subject: aio_read() oddness Message-ID: <20020305225908.U48034-100000@rylos.atmos.colostate.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm not currently subscribed to this list, so please cc replies to me. I was playing around with aio_read() and ran into some seemingly aberrant behavior, although not with aio_read() itself, but the resulting signal. Within struct aiocb I was setting: aio_sigevent.sigev_notify = SIGEV_SIGNAL; aio_sigevent.sigev_value.sigval_int = 42; iocb.aio_sigevent.sigev_signo = SIGUSR1; Then in the sigaction structure: sa_flags = SA_SIGINFO; Upon completion of the requested read, a signal is sent. Within the siginfo structure, si_signo is set properly. However, si_value.sigval_int is zero. Is this just not implemented completely yet or am I missing something? Tony Arcieri To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message