Skip to content

Commit 239fccd

Browse files
pb8ozulinx86
authored andcommitted
test: fix vsock helper hanging after exit
When running with an Ubuntu 22.04 rootfs, vsock_helper can hang and never exit. Fixed it by also closing STDERR when daemonizing. Signed-off-by: Pablo Barbáchano <pablob@amazon.com>
1 parent d8e52c8 commit 239fccd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/host_tools/vsock_helper.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ int main(int argc, char **argv) {
180180
setsid();
181181
close(STDIN_FILENO);
182182
close(STDOUT_FILENO);
183+
close(STDERR_FILENO);
183184
}
184185
else {
185186
port = atoi(argv[2]);

0 commit comments

Comments
 (0)