1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-10 04:23:02 +00:00

Add os/proc-close to close all pipes associated with a subprocess.

This will not leak handles until the GC runs in most use cases.
This commit is contained in:
Calvin Rose
2021-01-16 15:11:07 -06:00
parent c79480342b
commit 462e74ef87
6 changed files with 108 additions and 35 deletions

View File

@@ -146,7 +146,7 @@ extern const JanetAbstractType janet_address_type;
#ifdef JANET_EV
void janet_lib_ev(JanetTable *env);
void janet_ev_mark(void);
int janet_make_pipe(JanetHandle handles[2], int keep_write_side);
int janet_make_pipe(JanetHandle handles[2], int mode);
#endif
#endif