spawnvp only takes three arguments
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Tue, 31 Jul 2007 22:04:24 +0000 (22:04 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Tue, 31 Jul 2007 22:04:24 +0000 (22:04 +0000)
python/vserver.py

index 32f27ad..cfd347c 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2005 Princeton University
 
 # Copyright 2005 Princeton University
 
-#$Id: vserver.py,v 1.66 2007/07/31 16:31:04 dhozac Exp $
+#$Id: vserver.py,v 1.67 2007/07/31 18:14:02 dhozac Exp $
 
 import errno
 import fcntl
 
 import errno
 import fcntl
@@ -431,7 +431,7 @@ class VServer:
                          cmd_args = [cmd[0]] + map(lambda x: x % arg_subst,
                                                    cmd[1:])
                          print >>log, "executing '%s'" % " ".join(cmd_args)
                          cmd_args = [cmd[0]] + map(lambda x: x % arg_subst,
                                                    cmd[1:])
                          print >>log, "executing '%s'" % " ".join(cmd_args)
-                         os.spawnvp(os.P_WAIT,cmd[0],*cmd_args)
+                         os.spawnvp(os.P_WAIT,cmd[0],cmd_args)
                      except:
                          traceback.print_exc()
                          os._exit(1)
                      except:
                          traceback.print_exc()
                          os._exit(1)