git://git.onelab.eu
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
whitelist cleanups
[util-vserver.git]
/
src
/
vsh.c
diff --git
a/src/vsh.c
b/src/vsh.c
index
ee6ba76
..
8ea3645
100644
(file)
--- a/
src/vsh.c
+++ b/
src/vsh.c
@@
-48,6
+48,7
@@
#undef CONFIG_VSERVER_LEGACY
#undef CONFIG_VSERVER_LEGACY
+#if 0
/* Base for all vserver roots for chroot */
#define VSERVER_ROOT_BASE "/vservers"
/* Base for all vserver roots for chroot */
#define VSERVER_ROOT_BASE "/vservers"
@@
-208,13
+209,6
@@
static int sandbox_processes(xid_t ctx, char *context)
exit(1);
}
exit(1);
}
- /* check whether the slice has been taken off of the whitelist */
- if (slr.vs_whitelisted==0)
- {
- fprintf(stderr, "*** %s: %s has not been allocated resources on this node ***\n", hostname, context);
- exit(0);
- }
-
/* check whether the slice has been suspended */
if (slr.vs_cpu==0)
{
/* check whether the slice has been suspended */
if (slr.vs_cpu==0)
{
@@
-479,3
+473,10
@@
int main(int argc, char **argv)
return 0; /* shutup compiler */
}
return 0; /* shutup compiler */
}
+#else
+int main(int argc, char *argv[])
+{
+
+ return 0;
+}
+#endif