Merge pull request #4204 from ajmalsiddiqui/master

lxc-attach: Fix lost return codes of spawned processes that are killed
This commit is contained in:
Christian Brauner 2022-10-19 13:01:05 +02:00 committed by GitHub
commit fbed9bb759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -399,6 +399,8 @@ int lxc_attach_main(int argc, char *argv[])
}
if (WIFEXITED(ret))
wexit = WEXITSTATUS(ret);
else if (WIFSIGNALED(ret))
wexit = WTERMSIG(ret) + 128;
out:
lxc_container_put(c);