id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	branch	branch_author	launchpad_bug
5726	spawnProcess opens an unwanted console	alecu	alecu	"When spawning a process under Windows to capture its standard output, if the controlling process is not a console application a new console is wrongly opened.

Here's a sample program that shows the bug:

{{{
# should_not_open_console.pyw

from twisted.internet import reactor, utils

def write_result(result):
    open(""output.log"", ""w"").write(repr(result))
    reactor.stop()

PING_EXE = r""c:\windows\system32\ping.exe""
d = utils.getProcessOutput(PING_EXE, [""slashdot.org""])
d.addCallbacks(write_result)
reactor.run()
}}}

Make sure to run it with the pythonw executable:
{{{
c:\python27\pythonw.exe should_not_open_console.pyw
}}}

When running the above command, the program starts in the background, and the wrong behavior shows up: a new console is opened, with the path to ping.exe as the title, and it remains blank while ping runs.

The expected behavior is: no new console is opened."	defect	new	normal		core		windows console	allister.macleod@…	branches/windows-spawnprocess-nowindow-5726	amacleod	
