On 03/10/14 00:02, Thiago Arruda wrote:
I need to write a lua extension that uses libuv to talk with external
processes, and lua provides a simple hook to cleanup native objects once
all references to it are lost.
Is it enough to simply call uv_loop_close to cleanup all
operating-system resources allocated by libuv? Eg, will it kill child
processes, close connections automatically?
No, that function will only close the loop resources, iff all handles
and requests are already done. You can use uv_walk to iterate over all
handles to close them, then call uv_loop_close, and check the return code!
Cheers,
--
Saúl Ibarra Corretgé
http://bettercallsaghul.com
--
You received this message because you are subscribed to the Google Groups
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.