Skip to content

Commit 6186b2b

Browse files
committed
fix: closed file handler @W-21915680@
1 parent cb8448e commit 6186b2b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/hooks/init.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,6 @@ export const init: Interfaces.Hook<'init'> = async function (opts) {
8383
...(config.windows ? {shell: true} : {}),
8484
})
8585
.on('error', (e: Error) => process.emitWarning(e))
86+
.on('close', () => fd.close())
8687
.unref()
8788
}

0 commit comments

Comments
 (0)