Skip to content
Commit 43f62f42 authored by Pavel Emelyanov's avatar Pavel Emelyanov
Browse files

rst: Close standard descriptors before fds restore



Strictly speaking we have to close all fds before reopening them from the
image. This can be done using not yet merged nextfd syscall, but it's not
yet merged :( By now just close std and 255 (bash's) descriptors. This is
ugly, but I prefer to wait for the nextfd syscall.

But skip the init tasks' stds becase the existing zdtm implementation
uses system() in such tasks which doesn't work when all fds are closed.

Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent a03323e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment