From: "Serge E. Hallyn" <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: Oren Laadan <orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
Cc: Linux Containers <containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org>
Subject: [PATCH user-cr] define MNT_DETACH in older userspace
Date: Mon, 22 Feb 2010 11:47:55 -0600 [thread overview]
Message-ID: <20100222174755.GA8329@us.ibm.com> (raw)
Reported-by: Nathan T Lynch <natlynch-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
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
next reply other threads:[~2010-02-22 17:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-22 17:47 Serge E. Hallyn [this message]
[not found] ` <20100222174755.GA8329-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-02-22 17:57 ` [PATCH user-cr] define MNT_DETACH in older userspace Nathan Lynch
[not found] ` <1266861478.3760.2.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-02-22 18:03 ` Serge E. Hallyn
2010-02-22 18:07 ` Nathan Lynch
[not found] ` <1266862049.12720.1.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-02-22 22:51 ` Oren Laadan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100222174755.GA8329@us.ibm.com \
--to=serue-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
--cc=containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
--cc=orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox