From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvIed-0002QE-Tf for qemu-devel@nongnu.org; Fri, 26 Mar 2010 19:09:27 -0400 Received: from [140.186.70.92] (port=39286 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvIby-00023P-HT for qemu-devel@nongnu.org; Fri, 26 Mar 2010 19:09:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvIaw-0004wD-EX for qemu-devel@nongnu.org; Fri, 26 Mar 2010 19:05:39 -0400 Received: from mx20.gnu.org ([199.232.41.8]:60927) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvIaw-0004w6-Cg for qemu-devel@nongnu.org; Fri, 26 Mar 2010 19:05:38 -0400 Received: from mail.codesourcery.com ([38.113.113.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NvIav-00074y-Oy for qemu-devel@nongnu.org; Fri, 26 Mar 2010 19:05:38 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH 1/4] linux-user: add pselect syscall Date: Fri, 26 Mar 2010 23:05:31 +0000 References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201003262305.32156.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio , Riku Voipio , Michael Casadevall >This patch adds support for the pselect syscall in linux-user emulation >and also adds several support functions required to translate the >timespec structs between the target and the host. IIUC the whole point of the pselect is that it should be atomic. By emulating this in a non-atomic fasion I think you're re-introducing the race condition that it is designed to avoid. Wouldn't it be better to just return ENOSYS and let the guest deal with the problem? Paul