Skip to content

Commit

Permalink
kill process after task
Browse files Browse the repository at this point in the history
  • Loading branch information
lanlin committed Sep 25, 2018
1 parent 92cc1b0 commit d9b17ae
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/Core/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,9 @@ public static function onTask(\Swoole\Server $serv, $taskId, $workerId, $data)
getCiSwooleConfig('starter');
}

// kill process
catch (\Throwable $e) { self::logs($e); }

// ignore...
// finally
// {
// register_shutdown_function(function()
// {
// \Swoole\Process::kill(getmypid());
// });
// }
finally { \Swoole\Process::kill(getmypid()); }
}

// ------------------------------------------------------------------------------
Expand Down

0 comments on commit d9b17ae

Please sign in to comment.