mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-04-29 10:05:47 +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))
|
if (WIFEXITED(ret))
|
||||||
wexit = WEXITSTATUS(ret);
|
wexit = WEXITSTATUS(ret);
|
||||||
|
else if (WIFSIGNALED(ret))
|
||||||
|
wexit = WTERMSIG(ret) + 128;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
lxc_container_put(c);
|
lxc_container_put(c);
|
||||||
|
Loading…
Reference in New Issue
Block a user