Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Move this.pause to fix #5927 #5929

Closed
wants to merge 22 commits into from
Closed

Move this.pause to fix #5927 #5929

wants to merge 22 commits into from

Conversation

danielchatfield
Copy link

On windows 8 (and maybe other versions of windows) if this.pause() isn't called before _setRawMode then things go a bit wonky (see #5927).

bnoordhuis and others added 21 commits July 18, 2013 20:49
Ditto for the 'removeListener' event.
Before this commit, fs.chown() and fs.fchown() coerced the uid and gid
arguments to signed integers which is wrong because uid_t and gid_t are
unsigned on most all platforms and IDs that don't fit in a signed
integer do exist.

This commit changes the aforementioned functions to take unsigned ints
instead.  No test because we can't assume the system has [GU]IDs that
large.

This change depends on joyent/libuv@d779eb5.

Fixes #5890.
The return values from uv_cpu_info() don't necessarily fit in a 32 bits
signed integer.

Fixes #5732.
* uv: Upgrade to v0.10.13

* npm: Upgrade to v1.3.5

* os: Don't report negative times in cpu info (Ben Noordhuis)

* fs: Handle large UID and GID (Ben Noordhuis)

* url: Fix edge-case when protocol is non-lowercase (Shuan Wang)

* doc: Streams API Doc Rewrite (isaacs)

* node: call MakeDomainCallback in all domain cases (Trevor Norris)

* crypto: fix memory leak in LoadPKCS12 (Fedor Indutny)
And process.getgid() too.

Commit ed80638 changed fs.chown() and fs.fchown() to only accept
unsigned integers. Make process.getuid() and process.getgid() follow
suit.

This commit should unbreak npm on OS X - it's hitting the new 'uid must
be an unsigned int' check when installing as e.g. user 'nobody' (which
has an UID of -2 in /etc/passwd or 4294967294 when cast to an uid_t.)

Fixes #5904.
* src: fix process.getuid() return value (Ben Noordhuis)
The title shouldn't be too long; libuv's uv_set_process_title() out of
security considerations no longer overwrites envp, only argv, so the
maximum title length is possibly quite short.

Fixes #5908.
@Nodejs-Jenkins
Copy link

Thank you for contributing this pull request! Here are a few pointers to make sure your submission will be considered for inclusion.

Commit danielchatfield/node@fdf07d3f85764e8cfa8474dc7f519aa6e485e897 has the following error(s):

  • Commit message must indicate the subsystem this commit changes

The following commiters were not found in the CLA:

  • Daniel Chatfield

You can fix all these things without opening another issue.

Please see CONTRIBUTING.md for more information

@tjfontaine
Copy link

@danielchatfield why did you close the issue? if it was to please the bot, you don't need to open a new one to do so

@danielchatfield
Copy link
Author

@tjfontaine github automatically closed it because I had to delete the branch (should have read contributing more closely first). When I push the new branch github might reopen it, we'll have to see.

Pause should be called before _setRawMode to prevent things going wonky
in windows (see #5927).
@danielchatfield
Copy link
Author

@tjfontaine I can't see any way to change the target branch so I'm going to have to open a new pull request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants