[Twisted-Python] Suppressing terminal window from reactor.spawnProcess?

Steve Freitas sflist at ihonk.com
Fri Feb 2 12:05:40 EST 2007


Thanks for the very informative replies, Eric.

On Fri, 2007-02-02 at 05:27 -0600, Eric Mangold wrote:
> > Processes on Windows will inherit the parent's console by default. So  
>> when you run from the command-line it doesn't need to create a new
>> one.

>Actually CREATE_NO_WINDOW might be the flag you want. I'm not 100%
>sure w/o running some tests.

Okay... So I've got to somehow figure out how to launch the parent
Twisted instance with CREATE_NO_WINDOW (or DETACHED_PROCESS, or
whatever), then?

I'm using Hammond's pythonservice.exe, which was a side effect of using
this approach to installing and running the Windows service:

http://twistedmatrix.com/pipermail/twisted-python/2006-August/013790.html

Also, I have access to the source code of the process I'm launching --
if I can't figure out how to solve this from the Twisted side, might I
be able to resolve it by modifying the process I'm launching?

Steve





More information about the Twisted-Python mailing list