Back out of always creating network namespace when starting vserver
authorAndy Bavier <acb@cs.princeton.edu>
Mon, 30 Nov 2009 19:30:39 +0000 (19:30 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Mon, 30 Nov 2009 19:30:39 +0000 (19:30 +0000)
python/vserver.py
python/vserverimpl.c

index 59141aa..ed83670 100644 (file)
@@ -380,12 +380,8 @@ class VServer:
         else:
             # child process
             try:
-                f = "/etc/vservers/%s/spaces/net" % self.name
-                # Always start vserver with a network namespace.  
-                subprocess.call(["/bin/touch", f], shell=False)
                 subprocess.call("/usr/sbin/vserver %s start" % self.name, 
                                 shell=True)
-                #subprocess.call(["/bin/rm", f], shell=False)
             # we get here due to an exception in the top-level child process
             except Exception, ex:
                 self.log(traceback.format_exc())
index 788535a..9d51c58 100644 (file)
@@ -98,7 +98,7 @@ vserver_set_rlimit(PyObject *self, PyObject *args) {
   uint32_t bitmask;
   xid_t xid;
   int resource;
-  PyObject *ret;
+  PyObject *ret = NULL;
 
   limits.min = VC_LIM_KEEP;
   limits.soft = VC_LIM_KEEP;