Skip to content
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

Merged
merged 2 commits into from
Apr 10, 2017
Merged

Fixes #115 #119

merged 2 commits into from
Apr 10, 2017

Conversation

silkentrance
Copy link
Collaborator

Fixes #117
Add node 7 to travis build matrix
Bump version to 0.0.32

Fixes #117
Add node 7 to travis build matrix
Bump version to 0.0.32
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]) {
Copy link
Owner

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?

Copy link
Collaborator Author

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.

Copy link
Owner

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])

Copy link
Collaborator Author

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.

@silkentrance
Copy link
Collaborator Author

@raszi What do you think? All tests have passed. Shall we merge and close both #117 and #115?

@raszi
Copy link
Owner

raszi commented Apr 10, 2017

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.

@raszi raszi merged commit ce1fad9 into master Apr 10, 2017
@silkentrance silkentrance deleted the gh-115 branch May 16, 2017 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

detachDescriptor causes error with fixes for #115 in place
2 participants