[Devel] [PATCH user-cr] define MNT_DETACH in older userspace

Serge E. Hallyn serue at us.ibm.com
Mon Feb 22 09:47:55 PST 2010


Reported-by: Nathan T Lynch <natlynch at us.ibm.com>
Signed-off-by: Serge Hallyn <serue at us.ibm.com>
---
 nsexec.c  |    4 ++++
 restart.c |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/nsexec.c b/nsexec.c
index 79fcc70..90db229 100644
--- a/nsexec.c
+++ b/nsexec.c
@@ -21,6 +21,10 @@
 #include "eclone.h"
 #include "genstack.h"
 
+#ifndef MNT_DETACH
+#define MNT_DETACH 2
+#endif
+
 extern pid_t getpgid(pid_t pid);
 extern pid_t getsid(pid_t pid);
 
diff --git a/restart.c b/restart.c
index 166a499..5d781c2 100644
--- a/restart.c
+++ b/restart.c
@@ -39,6 +39,10 @@
 #include "eclone.h"
 #include "genstack.h"
 
+#ifndef MNT_DETACH
+#define MNT_DETACH 2
+#endif
+
 static char usage_str[] =
 "usage: restart [opts]\n"
 "  restart restores from a checkpoint image by first creating in userspace\n"
-- 
1.7.0

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list