merge changes from head
authorMark Huang <mlhuang@cs.princeton.edu>
Wed, 7 Feb 2007 04:35:50 +0000 (04:35 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Wed, 7 Feb 2007 04:35:50 +0000 (04:35 +0000)
PLC/GPG.py
PLC/Methods/SliceGetTicket.py

index f351f27..13e5585 100644 (file)
@@ -7,7 +7,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: GPG.py,v 1.4 2007/01/10 20:18:52 mlhuang Exp $
+# $Id: GPG.py,v 1.6 2007/02/07 04:35:19 mlhuang Exp $
 #
 
 import os
@@ -55,7 +55,7 @@ def gpg_export(keyring, armor = True):
     if armor:
         args.append("--armor")
 
-    p = Popen(args, stdin = PIPE, stdout = PIPE, stderr = PIPE)
+    p = Popen(args, stdin = PIPE, stdout = PIPE, stderr = PIPE, close_fds = True)
     export = p.stdout.read()
     err = p.stderr.read()
     rc = p.wait()
index 33043ca..64413c9 100644 (file)
@@ -236,7 +236,7 @@ class SliceGetTicket(GetSliceTicket):
         p = Popen(["xmlsec1", "--sign",
                    "--privkey-pem", self.api.config.PLC_API_TICKET_KEY,
                    ticket.name],
-                  stdin = PIPE, stdout = PIPE, stderr = PIPE)
+                  stdin = PIPE, stdout = PIPE, stderr = PIPE, close_fds = True)
         signed_ticket = p.stdout.read()
         err = p.stderr.read()
         rc = p.wait()