-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: always close file handles to stdout/stderr logs #259
Conversation
src/chrome-launcher.ts
Outdated
if (this.userDataDir === undefined || this.opts.userDataDir !== undefined) { | ||
return resolve(); | ||
} | ||
|
||
if (this.outFile) { | ||
this.fs.closeSync(this.outFile); | ||
delete this.outFile; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense we should always close these file handles when done. I'm curious though, what was the error you were seeing? EDIT: ah, you filed an issue #260
Can you run |
@connorjclark done |
guys, this still let error file open when used custom data dir, no? i had to create a patch-package which moves the check condition (if we are using custom data dir) bellow the closeSync of errFile to make it work... |
It should closeSync outFile and errFile when userDataDir is custom.
fixes #260