mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 11:13:50 +00:00
start: close_ns()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
9e5f5f2fee
commit
39cd919cb1
@ -134,10 +134,11 @@ static void close_ns(int ns_fd[LXC_NS_MAX])
|
||||
int i;
|
||||
|
||||
for (i = 0; i < LXC_NS_MAX; i++) {
|
||||
if (ns_fd[i] > -1) {
|
||||
if (ns_fd[i] < 0)
|
||||
continue;
|
||||
|
||||
close(ns_fd[i]);
|
||||
ns_fd[i] = -1;
|
||||
}
|
||||
ns_fd[i] = -EBADF;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user