From: bugtrack@alsa-project.org Subject: [ALSA - lib 0000898]: API compatibility with pselect(2) Date: Wed, 9 Feb 2005 16:11:51 +0100 Message-ID: <658a2887656f6b82c4c15388495d3388@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id F014E260 for ; Wed, 9 Feb 2005 16:11:51 +0100 (MET) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org The following issue has been SUBMITTED. ====================================================================== ====================================================================== Reported By: phunge Assigned To: ====================================================================== Project: ALSA - lib Issue ID: 898 Category: general Reproducibility: always Severity: feature Priority: normal Status: new ====================================================================== Date Submitted: 02-09-2005 16:11 CET Last Modified: 02-09-2005 16:11 CET ====================================================================== Summary: API compatibility with pselect(2) Description: I have a program which uses the ALSA sequencer API, and also uses setitimer() to trigger some regular processing. I had a bug where I cannot open the sequencer when running under valgrind - the program output "Unknown SEQ default" when calling snd_seq_open. My theory is, this is caused by a SIGALRM being delivered while alsa-lib is in read() or write() or some other syscall, and none of alsa-lib handles EINTR correctly. I fixed this by blocking SIGALRM except for when calling poll(). However, using poll() there's no way to atomically unblock a signal and enter poll() - that's what pselect is for. However, the snd_*_poll_descriptors-style API makes it hard to use select/pselect, so I'm forced to implement it in a way that's not 100% free of race conditions. My request: please add a way to use select/pselect with ALSA. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 02-09-05 16:11 phunge New Issue ====================================================================== ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click