Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70207 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25120 invoked from network); 19 Nov 2013 13:01:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2013 13:01:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=remi@fedoraproject.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=remi@fedoraproject.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fedoraproject.org from 212.27.42.2 cause and error) X-PHP-List-Original-Sender: remi@fedoraproject.org X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Linux 2.6 Received: from [212.27.42.2] ([212.27.42.2:51467] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/D1-15197-4116B825 for ; Tue, 19 Nov 2013 08:01:10 -0500 Received: from schrodingerscat.famillecollet.com (unknown [82.241.130.121]) by smtp2-g21.free.fr (Postfix) with ESMTP id 4BFFC4B0045 for ; Tue, 19 Nov 2013 14:01:00 +0100 (CET) Message-ID: <528B610B.8030705@fedoraproject.org> Date: Tue, 19 Nov 2013 14:00:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: PHP internals X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: run-tests and Interrupted system call From: remi@fedoraproject.org (Remi Collet) Running memcached extension test suite (master), I'm affected by a strange issue. in run-tests.php we have $n = @stream_select($r, $w, $e, $timeout); if ($n === false) { break; If I unmute the stream_select I get the following output: Warning: stream_select(): unable to select [4]: Interrupted system call (max_fd=14) in /work/GIT/php-memcached/run-tests.php on line 1103 The system call is interrupted (yes, libmemcached plays with signals) but the program still run. Changing to if ($n === false) { $stat = proc_get_status($proc); if ($stat['signaled']) { break; } Allow the test to continue and succeed. Any idea for another reason ? What do you think of this change ? Remi.