From 4c72581493bf746e509ec8cf6e7e4ef78b1ebecf Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Wed, 24 Jun 2026 16:10:19 +0200 Subject: [PATCH] unixy extension: ps => kill for better portability --- xurfer/ext/unixy/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xurfer/ext/unixy/main.lua b/xurfer/ext/unixy/main.lua index a523fb4..68d7895 100644 --- a/xurfer/ext/unixy/main.lua +++ b/xurfer/ext/unixy/main.lua @@ -91,7 +91,7 @@ unixy = { for i = #unixy.jobs, 1, -1 do local job = unixy.jobs[i] -- 'kill -0' doesn't kill the process, it just checks if it exists. - local retcode = os.execute("ps -p " .. job.pid .. " > /dev/null") + local stdout, retcode = os.execute("kill -0 " .. job.pid .. " > /dev/null") if retcode ~= 0 then -- Process finished! Read stdout & stderr local f = io.open(job.stdout_file, "r")