run-tests and Interrupted system call

From: Date: Tue, 19 Nov 2013 13:00:59 +0000
Subject: run-tests and Interrupted system call
Groups: php.internals 
Request: Send a blank email to internals+get-70207@lists.php.net to get a copy of this message
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.


Thread (1 message)

  • Remi Collet
« previous php.internals (#70207) next »