mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-04-28 16:52:32 +00:00
Merge pull request #4204 from ajmalsiddiqui/master
lxc-attach: Fix lost return codes of spawned processes that are killed
This commit is contained in:
commit
fbed9bb759
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user