Hi Luca, Am Sonntag, 27. April 2014 11:01:31 UTC schrieb Luca Sbardella: > > The signal handler cannot return a coroutine. > If you replace: > > loop.add_signal_handler(getattr(signal, signame), > functools.partial(ask_exit, > signame)) > > with > > loop.add_signal_handler(getattr(signal, signame), lambda: asyncio.async( > ask_exit(signame))) > > > your example will work fine. > The async function runs your coroutine in the event loop. >
This does indeed work. Thank you very much.
