diff options
| -rw-r--r-- | tests/lock/flock_test.php | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lock/flock_test.php b/tests/lock/flock_test.php index bc682f9410..abcb4e79c2 100644 --- a/tests/lock/flock_test.php +++ b/tests/lock/flock_test.php @@ -65,7 +65,8 @@ class phpbb_lock_flock_test extends phpbb_test_case  		$path = __DIR__ . '/../tmp/precious'; -		if ($pid = pcntl_fork()) +		$pid = pcntl_fork(); +		if ($pid)  		{  			// parent  			// wait 0.5 s, acquire the lock, note how long it took  | 
