> Hello Roberto,
>
> is it safe to use this code with pos_fork_hook in async mode?
>
>

Yes, those part is executed before starting accepting requests.

If you are building an apps that wait for file descriptor i suggest
you to try the development version as the stable ones only include support
for the standard eventfd that is kind of limiting (imho).

In the development version you can simply do

yield uwshi.wait_fd_read(fd,timeout=-1)

to interrupt execution and i am working to add support for multiple fd
waiting:

yield uwshi.wait_fd_read([fd0,fd1,fd2],timeout=-1)

that will be the base for the upcoming websockets support

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to