Closed GoogleCodeExporter closed 9 years ago
That was me confirming the issue with Firefox.
I might be wrong but I think the python script eats all the stdout and stderr
from
spawned programs, which is probably unnecessary.
There is a call (defined in pygmi.util) done for "wmiir setsid wimenu ..." and
the
program spawned by wimenu lives inside this same subprocess.Popen, hence stdout
and
stderr is collected. The background switch which now only tells to not wait for
finishing should probably extended. I attach a patch, feel free to try it.
Original comment by skwi...@googlemail.com
on 30 Mar 2010 at 2:44
Attachments:
Thinking a bit more about that, wimenu and the spawned program is probably
decoupled
from the subprocess through the "wmiir setsid". Anyway, try the patch, I don't
have
the time now.
Original comment by skwi...@googlemail.com
on 30 Mar 2010 at 2:59
Yep, I did tested the patch and it works as expected - applications freeze no
more.
On the other hand I don't know if simple closing of stdin and stdout at process
spawning won't have some consequences (although called process is intended to
run in
the background ).
Thx for a quick fix, skwillt
Original comment by dunric...@gmail.com
on 30 Mar 2010 at 10:59
Good to hear that it works.
stdout=None in subprocess.Popen means that stdout is going to stdout of the
parent
process, which is the wmiirc here. And stdin is empty in any case. Nothing
wrong with
that, I think.
Original comment by skwi...@googlemail.com
on 31 Mar 2010 at 6:54
After reading subprocess docs I can confirm the value None for stdin,stdout and
stderr works exactly as you described.
I'm sorry for the confusion.
Original comment by dunric...@gmail.com
on 31 Mar 2010 at 6:00
Original comment by sun...@gmail.com
on 12 Apr 2010 at 9:02
This issue was closed by revision 3d03873142.
Original comment by maglion...@gmail.com
on 24 May 2010 at 5:04
Original issue reported on code.google.com by
dunric...@gmail.com
on 30 Mar 2010 at 10:54