From 1e38f34d0d4bca699bd2025dddeb6c66587b3246 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Fri, 3 May 2019 13:08:49 +0300 Subject: testing watchers --- tests/pid.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'tests/pid.php') diff --git a/tests/pid.php b/tests/pid.php index a8cfa229..bc1928a6 100644 --- a/tests/pid.php +++ b/tests/pid.php @@ -1,17 +1,17 @@ receive($ctx)) { - try { - $rr->send((string)getmypid()); - } catch (\Throwable $e) { - $rr->error((string)$e); - } -} \ No newline at end of file + while ($in = $rr->receive($ctx)) { + try { + $rr->send((string)getmypid()); + } catch (\Throwable $e) { + $rr->error((string)$e); + } + } \ No newline at end of file -- cgit v1.2.3