Skip to content

Fixes #115#119

Merged
raszi merged 2 commits intomasterfrom
gh-115
Apr 10, 2017
Merged

Fixes #115#119
raszi merged 2 commits intomasterfrom
gh-115

Conversation

@silkentrance
Copy link
Copy Markdown
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
const removeCallback = _prepareRemoveCallback(function _removeCallback(fdPath) {
try {
if (0 <= fdPath[0]) {
if (-1 != fdPath[0]) {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator Author

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

@raszi
Copy link
Copy Markdown
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