Skip to content

Commit d36540d

Browse files
fix: add cleanup
1 parent 230d33b commit d36540d

File tree

1 file changed

+2
-0
lines changed
  • src/typegraph/specs/codegen/rpc/typescript

1 file changed

+2
-0
lines changed

src/typegraph/specs/codegen/rpc/typescript/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ if (platform === "darwin" || platform === "linux") {
3636
const flags = fcntl([process.stdin.fd, F_GETFL, 0]);
3737
const result = fcntl([process.stdin.fd, F_SETFL, flags & ~O_NONBLOCK]);
3838

39+
ffi.close("libc");
40+
3941
if (result !== 0) {
4042
throw new Error("Failed to disable non-blocking fd flag");
4143
}

0 commit comments

Comments
 (0)