-
Notifications
You must be signed in to change notification settings - Fork 93
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
Fixes #115 #119
Fixes #115 #119
Conversation
lib/tmp.js
Outdated
@@ -367,20 +369,28 @@ function dirSync(options) { | |||
function _prepareTmpFileRemoveCallback(name, fd, opts) { | |||
const removeCallback = _prepareRemoveCallback(function _removeCallback(fdPath) { | |||
try { | |||
if (0 <= fdPath[0]) { | |||
if (-1 != fdPath[0]) { |
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.
Is there any specific reason why you allow negative values as well except -1
?
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.
There was this other PR that sets the fd to -1.
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.
Right now the condition in the master branch looks like this:
if (0 <= fdPath[0])
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.
Ah, I now see the problem. I will change that as soon as I find the time.
Sure, yeah! I just fixed the small file descriptor issue but I did not have time to wait for the tests to finish on Travis. |
Fixes #117
Add node 7 to travis build matrix
Bump version to 0.0.32