From adabd6dd10133b4ed2c30e1d292b7cb602df607b Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Wed, 3 Sep 2025 13:11:17 +0800 Subject: [PATCH] opt: use spawn_shell to run exec config --- src/config/parse_config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/parse_config.h b/src/config/parse_config.h index 3cdf0b0..0f05811 100644 --- a/src/config/parse_config.h +++ b/src/config/parse_config.h @@ -820,7 +820,7 @@ void run_exec() { for (int i = 0; i < config.exec_count; i++) { arg.v = config.exec[i]; - spawn(&arg); + spawn_shell(&arg); } } @@ -829,7 +829,7 @@ void run_exec_once() { for (int i = 0; i < config.exec_once_count; i++) { arg.v = config.exec_once[i]; - spawn(&arg); + spawn_shell(&arg); } }