mirror of
https://github.com/urbit/shrub.git
synced 2024-12-23 02:41:35 +03:00
Set u3_pier backpointer in libuv handles
This commit is contained in:
parent
58efee0a82
commit
3b895c4ff6
@ -606,6 +606,7 @@ _unix_watch_file(u3_pier *pir_u, u3_ufil* fil_u, u3_udir* par_u, c3_c* pax_c)
|
||||
// note that we're doing something tricky here
|
||||
// see comment in _unix_fs_event_cb
|
||||
|
||||
fil_u->was_u.data = pir_u;
|
||||
c3_w ret_w = uv_fs_event_init(u3L, &fil_u->was_u);
|
||||
if (0 != ret_w){
|
||||
uL(fprintf(uH, "file event init: %s\n", uv_strerror(ret_w)));
|
||||
@ -1300,6 +1301,7 @@ u3_unix_io_init(u3_pier *pir_u)
|
||||
|
||||
uv_check_init(u3L, &pir_u->unx_u->syn_u);
|
||||
|
||||
unx_u->tim_u.data = pir_u;
|
||||
uv_timer_init(u3L, &unx_u->tim_u);
|
||||
unx_u->alm = c3n;
|
||||
unx_u->dyr = c3n;
|
||||
|
Loading…
Reference in New Issue
Block a user