I've realized that, for example, uv_signal_init() may return error so
for consinstency it is ok to document that return value must be
checked in all th euv_xxx_init() functions.

Just a question them: Imagine that, for some reason, uv_signal_init()
returns error. Should I call to uv_close()? or just free the handle?
By looking at the unix code it's clear that I MUST NOT call uv_close()
since the function returned before calling uv__handle_init(), but is
it guaranteed?

2014-09-01 11:54 GMT+02:00 Iñaki Baz Castillo <[email protected]>:
> Hi, uv_tcp_init(), uv_udp_init(), uv_udp_open(), etc, return 0.
>
> Then, why do they even return a value instead of being void?
>
> --
> Iñaki Baz Castillo
> <[email protected]>



-- 
Iñaki Baz Castillo
<[email protected]>

-- 
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.

Reply via email to