FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fs: cleanup fd lchown and lchownSync by jasnell · Pull Request #18329 · nodejs/node · GitHub

/ node Public

fs: cleanup fd lchown and lchownSync - #18329

Closed
jasnell wants to merge 1 commit into
nodejs:masterfrom
jasnell:fs-fix-lchown
Closed

fs: cleanup fd lchown and lchownSync#18329
jasnell wants to merge 1 commit into
nodejs:masterfrom
jasnell:fs-fix-lchown

Conversation

jasnell commented Jan 23, 2018

Copy link
Copy Markdown
Member

lchown and lchownSync were opening file descriptors without closing them. Looks like it has been that way for 7 years. Does anyone actually use these functions? :-)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

fs

lchown and lchownSync were opening file descriptors without
closing them. Looks like it has been that way for 7 years.
Does anyone actually use these functions?
jasnell added the fs Issues and PRs related to the fs subsystem / file system. label Jan 23, 2018

Copy link
Copy Markdown
Member

jasnell commented Jan 24, 2018

Copy link
Copy Markdown
Member Author

Failures in CI are unrelated.

jasnell added a commit that referenced this pull request Jan 26, 2018
lchown and lchownSync were opening file descriptors without
closing them. Looks like it has been that way for 7 years.
Does anyone actually use these functions?

PR-URL: #18329
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>

jasnell commented Jan 26, 2018

Copy link
Copy Markdown
Member Author

Landed in 082f952

jasnell closed this Jan 26, 2018
evanlucas pushed a commit that referenced this pull request Jan 30, 2018
lchown and lchownSync were opening file descriptors without
closing them. Looks like it has been that way for 7 years.
Does anyone actually use these functions?

PR-URL: #18329
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>

MylesBorins commented Feb 27, 2018
edited
Loading

Copy link
Copy Markdown
Contributor

I've landed on 8.x, but I'm not sure we need this on 6.x

It looks like an optimization in #14055 may have created the leak

As you can see in 6.x, the fd is always closed (or at least it is attempted).

edit: seeing there were other leaks, probably want to land that on v6.x, @jasnell would you open a backport?

MylesBorins pushed a commit that referenced this pull request Feb 27, 2018
lchown and lchownSync were opening file descriptors without
closing them. Looks like it has been that way for 7 years.
Does anyone actually use these functions?

PR-URL: #18329
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
MayaLekova pushed a commit to MayaLekova/node that referenced this pull request May 8, 2018
lchown and lchownSync were opening file descriptors without
closing them. Looks like it has been that way for 7 years.
Does anyone actually use these functions?

PR-URL: nodejs#18329
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fs Issues and PRs related to the fs subsystem / file system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL