Package common :: Module GnuPGInterface :: Class Process
[hide private]
[frames] | no frames]

Class Process

source code

Objects of this class encompass properties of a GnuPG process spawned by GnuPG.run()

# gnupg is a GnuPG object process = gnupg.run( [ '--decrypt' ], stdout = 1 ) out = process.handles['stdout'].read() ... os.waitpid( process.pid, 0 )

Data Attributes

handles -- This is a map of filehandle-names to the file handles, if any, that were requested via run() and hence are connected to the running GnuPG process. Valid names of this map are only those handles that were requested.

pid -- The PID of the spawned GnuPG process. Useful to know, since once should call os.waitpid() to clean up the process, especially if multiple calls are made to run().

Instance Methods [hide private]
 
__init__(self) source code
 
wait(self)
Wait on the process to exit, allowing for child cleanup.
source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 

wait(self)

source code 
Wait on the process to exit, allowing for child cleanup. Will raise an IOError if the process exits non-zero