Re: spawning a xvfb and firefox with a timeout

[email protected]
Newsgroups gmane.comp.python.twisted.web
Message-ID <20110820210110.14538.1681657284.divmod.xquotient.5@localhost.localdomain>
On 19 Aug, 04:42 am, [email protected] wrote:
>I'm attempting to spawn xvfb with firefox using twisted's spawnProcess.
>
>I'm having two issues:
>
>1) when I call a normal process (not xvfb) it seems to
>work, but when I call xvfb the process goes defunct
>
>2) perhaps because it goes defunct but the timeout I set in place in
>the processprotocol does
>not trigger.
>
>==============
>here is the code for spawning a process
>==============
>108         command = ["/usr/bin/xvfb-run", "--auto-servernum",
>"/usr/bin/firefox", "-P", profile_id]
>109         subprocess = reactor.spawnProcess(TimedProcessProtocol(20),
>110                                             command[0], command)


Does it make any difference if you pass on the parent's environment to 
the xvfb-run process?  Try something like spawnProcess(..., 
env=os.environ)

Jean-Paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.