message: Improve the write in worker test.
diff: @@ -11,12 +11,16 @@ assert.quiet_eval=0
  <?php
  require_once __DIR__ . '/../include/bootstrap.php';
  +$pm = new \ProcessManager;
  +$pm->parentFunc = function () use ($pm) {
  + $pm->kill();
  +};
  +$pm->childFunc = function () use ($pm) {
  $serv = new \swoole_server('127.0.0.1', 9501);
  -$process = new \Swoole\Process(function ($process) use ($serv) {
  + $process = new \swoole_process(function (swoole_process $process) use ($serv) {
  sleep(1);
  echo "process start\n";
  - for ($i = 0; $i < 1024; $i++)
  - {
  + for ($i = 0; $i < 1024; $i++) {
  $data = $process->read();
  assert(strlen($data) == 8192);
  }
  @@ -27,21 +31,22 @@ $serv->set([
  "worker_num" => 1,
  'log_file' => '/dev/null',
  ]);
  -$serv->on("WorkerStart", function (\swoole_server $serv) use ($process) {
  - for ($i = 0; $i < 1024; $i++)
  - {
  + $serv->on("WorkerStart", function (\swoole_server $serv) use ($process, $pm) {
  + for ($i = 0; $i < 1024; $i++) {
  $process->write(str_repeat('A', 8192));
  assert($process == true);
  }
  echo "worker end\n";
  + $pm->wakeup();
  });
  -$serv->on("Receive", function (\swoole_server $serv, $fd, $rid, $data) use ($process) {
  -
  -});
  + $serv->on("Receive", function () { });
  $serv->addProcess($process);
  $serv->start();
  +};
  +$pm->childFirst();
  +$pm->run();
  ?>
  --EXPECT--
  -worker end
  process start
  process end
  +worker end
  