about summary refs log tree commit diff stats
path: root/src/uv_link_observer_t.c
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2016-06-03 14:52:38 -0400
committerFedor Indutny <fedor@indutny.com>2016-06-03 14:52:38 -0400
commit201448c9bbd6a143e0ad04b4961bd856eb6b5012 (patch)
treefaa3efdb7785c1cc6953d67214028db6e39d6dd0 /src/uv_link_observer_t.c
parent88ffbdbebace7624f934e91c97731f18f3f8ee03 (diff)
downloaduv_link_t-201448c9bbd6a143e0ad04b4961bd856eb6b5012.tar.gz
src: error or NULL links they happen on close
Right after `uv_link_close()` all links will be unchained, meaning that
they `link->parent` is NULL. Instead of crashing on calls like:

`uv_link_try_write(link->parent, ...)`

Make them return `UV_EFAULT`, indicating that no parent is present
anymore. Alternatively, these checks could be done in user code, but it
will make it too cumbersome.
Diffstat (limited to 'src/uv_link_observer_t.c')
0 files changed, 0 insertions, 0 deletions