[CRIU] [PATCH] IPC: close image files after use
Kinsbursky Stanislav
skinsbursky at openvz.org
Fri Feb 17 03:56:07 EST 2012
Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>
---
ipc_ns.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/ipc_ns.c b/ipc_ns.c
index 54a44b1..675bd4a 100644
--- a/ipc_ns.c
+++ b/ipc_ns.c
@@ -655,6 +655,7 @@ static int prepare_ipc_sem(int pid)
return ret;
}
}
+ close_safe(&fd);
return 0;
}
@@ -768,6 +769,7 @@ static int prepare_ipc_msg(int pid)
return ret;
}
}
+ close_safe(&fd);
return 0;
}
@@ -860,6 +862,7 @@ static int prepare_ipc_shm(int pid)
return ret;
}
}
+ close_safe(&fd);
return 0;
}
@@ -879,6 +882,8 @@ static int prepare_ipc_var(int pid)
return -EFAULT;
}
+ close_safe(&fd);
+
show_var_entry(&var);
return ipc_sysctl_req(&var, CTL_WRITE);
More information about the CRIU
mailing list