[issue24837] await process.wait() does not work with a new_event_loop

2022-03-30 Thread Guido van Rossum
Guido van Rossum added the comment: Okay let's close it then. :-) -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue24837] await process.wait() does not work with a new_event_loop

2022-03-30 Thread Kumar Aditya
Kumar Aditya added the comment: @asvetlov This is bug no longer exists, on main branch this is the output and it does not hangs: DEBUG:asyncio:Using selector: EpollSelector True -- nosy: +asvetlov, kumaraditya ___ Python tracker

[issue24837] await process.wait() does not work with a new_event_loop

2016-09-04 Thread Justin Mayfield
Justin Mayfield added the comment: I agree with Guido. I spent a couple hours trying to debug some of my own code that turned out to be this issue. My use case is single threaded too. Perhaps I'm daft but I don't understand why the child watcher is part of the event loop policy. At first gl

[issue24837] await process.wait() does not work with a new_event_loop

2015-08-10 Thread Guido van Rossum
Guido van Rossum added the comment: I think it's unfortunate that this doesn't work. Note that the example program has no threads -- it just has a loop that isn't the default loop. The docs you refer to aren't very helpful. -- ___ Python tracker

[issue24837] await process.wait() does not work with a new_event_loop

2015-08-10 Thread STINNER Victor
STINNER Victor added the comment: It's better to use asyncio.get_event_loop() to create the event loop. Otherwise, you have to create manually the child watcher: https://docs.python.org/dev/library/asyncio-subprocess.html#subprocess-and-threads If I recall correctly, you have to call asyncio. ge

[issue24837] await process.wait() does not work with a new_event_loop

2015-08-10 Thread Chetan Reddy
New submission from Chetan Reddy: Attached test.py hangs with the following output when run with PYTHONASYNCIODEBUG1= and -Wdefault. DEBUG:asyncio:Using selector: EpollSelector DEBUG:asyncio:run shell command 'sleep 2' DEBUG:asyncio:process 'sleep 2' created: pid 13801 INFO:asyncio:run shell co