~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finalise 0.4.0~beta1
[secnet]
/
slip.c
diff --git
a/slip.c
b/slip.c
index
e555f47
..
a236752
100644
(file)
--- a/
slip.c
+++ b/
slip.c
@@
-383,6
+383,9
@@
static void userv_invoke_userv(struct userv *st)
}
setnonblock(st->txfd);
setnonblock(st->rxfd);
}
setnonblock(st->txfd);
setnonblock(st->rxfd);
+
+ add_hook(PHASE_CHILDPERSIST,childpersist_closefd_hook,&st->txfd);
+ add_hook(PHASE_CHILDPERSIST,childpersist_closefd_hook,&st->rxfd);
}
static void userv_kill_userv(struct userv *st)
}
static void userv_kill_userv(struct userv *st)
@@
-416,7
+419,7
@@
static list_t *userv_apply(closure_t *self, struct cloc loc, dict_t *context,
item_t *item;
dict_t *dict;
item_t *item;
dict_t *dict;
-
st=safe_malloc(sizeof(*st),"userv_apply"
);
+
NEW(st
);
/* First parameter must be a dict */
item=list_elem(args,0);
/* First parameter must be a dict */
item=list_elem(args,0);