X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FGPG.py;h=13e55855d29ed4a0e356ddd8408642ee83930b81;hb=f54d08c82ed43f0298349dea6ba9d8e58d4dbae5;hp=f351f276f072a10a61c2d851d34db2f0ef518cba;hpb=f7128cb26e05a7671a81b9d3940366cb139884e3;p=plcapi.git diff --git a/PLC/GPG.py b/PLC/GPG.py index f351f27..13e5585 100644 --- a/PLC/GPG.py +++ b/PLC/GPG.py @@ -7,7 +7,7 @@ # Mark Huang # 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()