From e9fb1d7be540794ebe5027a08fbf97df189c6787 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 8 Dec 2025 22:58:42 +0900 Subject: container/initdaemon: copy wstatus from wait4 loop Due to the special nature of the init process, direct use of wait outside the wait4 loop is racy. This change copies the wstatus from wait4 loop state instead. Signed-off-by: Ophestra --- test/interactive/hakurei.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/interactive/hakurei.nix b/test/interactive/hakurei.nix index eb24c7e7..3c63a3bc 100644 --- a/test/interactive/hakurei.nix +++ b/test/interactive/hakurei.nix @@ -34,11 +34,8 @@ { type = "daemon"; dst = "/proc/nonexistent"; - path = "/bin/sh"; - args = [ - "-lc" - "sleep 1 && exec false" - ]; + path = "/usr/bin/env"; + args = [ "false" ]; } ]; }; -- cgit v1.3.1