From 5f8a02d8986825c031c353f3326854a198d66842 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 28 Mar 2021 16:18:25 +0800 Subject: [PATCH] modify --- HttpServer/Shutdown.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/HttpServer/Shutdown.php b/HttpServer/Shutdown.php index dd0d1420..2cadabd7 100644 --- a/HttpServer/Shutdown.php +++ b/HttpServer/Shutdown.php @@ -118,7 +118,11 @@ class Shutdown extends Component exec('kill -15 ' . $content); sleep(1); } - @unlink($value); + + clearstatcache($value); + if (file_exists($value)) { + @unlink($value); + } }