From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jl5zp-0003R9-OI for qemu-devel@nongnu.org; Sun, 13 Apr 2008 13:28:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jl5zn-0003Qb-Bg for qemu-devel@nongnu.org; Sun, 13 Apr 2008 13:28:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jl5zn-0003QY-4r for qemu-devel@nongnu.org; Sun, 13 Apr 2008 13:28:03 -0400 Received: from mail2.shareable.org ([80.68.89.115]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jl5zm-00039j-SB for qemu-devel@nongnu.org; Sun, 13 Apr 2008 13:28:02 -0400 Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from ) id 1Jl5zh-00053X-TV for qemu-devel@nongnu.org; Sun, 13 Apr 2008 18:27:57 +0100 Date: Sun, 13 Apr 2008 18:27:57 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] [PATCH] use SIGALRM for alarm timers, enable SIGIO on qemu_set_fd_handler2() Message-ID: <20080413172756.GA19263@shareable.org> References: <877if1r8k4.fsf@dylle.kalibalik.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877if1r8k4.fsf@dylle.kalibalik.dk> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Anders Melchiorsen wrote: > - sigaction(SIGIO, &act, NULL); > + sigaction(SIGALRM, &act, NULL); > fcntl(fd, F_SETFL, O_ASYNC); > + fcntl(fd, F_SETSIG, SIGALRM); > fcntl(fd, F_SETOWN, getpid()); F_SETSIG is specific to Linux. Other host OSes don't have it. -- Jamie