[PATCH user-cr] define MNT_DETACH in older userspace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reported-by: Nathan T Lynch <natlynch@xxxxxxxxxx>
Signed-off-by: Serge Hallyn <serue@xxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux