From 25508b4c66f258be594f270b8292bab7bf8a60e6 Mon Sep 17 00:00:00 2001 From: pulsareonbot Date: Tue, 7 Jul 2026 13:59:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(Live2D):=20pkill=20-9=20=E5=BC=BA=E5=88=B6?= =?UTF-8?q?=E6=9D=80=20Firefox=20=E8=BF=9B=E7=A8=8B=E6=A0=91=EF=BC=88SIGTE?= =?UTF-8?q?RM=20=E4=B8=8D=E5=A4=9F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/video/mod.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/video/mod.rs b/src/plugins/video/mod.rs index cfde436..2385eb9 100644 --- a/src/plugins/video/mod.rs +++ b/src/plugins/video/mod.rs @@ -214,8 +214,9 @@ impl Plugin for VideoPlugin { let _ = child.kill(); let _ = child.wait(); } - // Firefox 会 fork 多个子进程,child.kill() 只杀父进程,用 pkill 兜底 + // Firefox 会 fork 多个子进程,child.kill() 只杀父进程,用 pkill -9 兜底 let _ = std::process::Command::new("pkill") + .arg("-9") .arg("-f") .arg("firefox-esr") .output(); @@ -248,8 +249,9 @@ impl Plugin for VideoPlugin { let _ = child.kill(); let _ = child.wait(); } - // Firefox 会 fork 多个子进程,child.kill() 只杀父进程,用 pkill 兜底 + // Firefox 会 fork 多个子进程,child.kill() 只杀父进程,用 pkill -9 兜底 let _ = std::process::Command::new("pkill") + .arg("-9") .arg("-f") .arg("firefox-esr") .output(); @@ -306,6 +308,7 @@ impl Plugin for VideoPlugin { let _ = child.wait(); } let _ = std::process::Command::new("pkill") + .arg("-9") .arg("-f") .arg("firefox-esr") .output();