diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-08 22:58:42 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-08 22:58:42 +0900 |
| commit | e9fb1d7be540794ebe5027a08fbf97df189c6787 (patch) | |
| tree | 6447dcdd7165fb2cb61dd1b46e47238d93bb54a7 /test | |
| parent | dafe9f8efc46bbd0fb391d1f7a93f05ee9751250 (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'test')
| -rw-r--r-- | test/interactive/hakurei.nix | 7 |
1 files changed, 2 insertions, 5 deletions
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" ]; } ]; }; |
