From a2512fe299fd48550f4107e545cfe00a57b377e6 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Sun, 8 Jun 2025 22:54:58 +0800 Subject: [PATCH] fix: Fix the issue #132 Signed-off-by: Jianhui Zhao --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.c b/src/command.c index 49c92d3..d2a68fb 100644 --- a/src/command.c +++ b/src/command.c @@ -249,8 +249,8 @@ static void run_task(struct task *t) { int opipe[2]; int epipe[2]; + int err = 0; pid_t pid; - int err; if (pipe2(opipe, O_CLOEXEC | O_NONBLOCK) < 0 || pipe2(epipe, O_CLOEXEC | O_NONBLOCK) < 0) {