-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
src: define getpid() based on OS #4146
Conversation
I believe we can forgo including |
I think you're right. Updating. |
Updated. |
Only CI failures are known flakey tests. |
LGTM |
94b9948 added unistd.h to src/env.cc in order to use getpid(). However, this doesn't exist on Windows. This commit conditionally defines getpid() based on the OS. Fixes: nodejs#4145 PR-URL: nodejs#4146 Reviewed-By: Brian White <mscdex@mscdex.net>
Thanks for the review. Landing this more quickly than normal since the Windows CI was borked. |
commits missing again, perhaps this is what github is doing now if you don't update your PR with the latest version of the commits and delete the branch? |
94b9948 was semver major so I do not believe this patch should be backported. @jasnell feel free to modify. |
94b9948 added unistd.h to src/env.cc in order to use getpid(). However, this doesn't exist on Windows. This commit conditionally defines getpid() based on the OS. Fixes: nodejs#4145 PR-URL: nodejs#4146 Reviewed-By: Brian White <mscdex@mscdex.net>
94b9948 added
unistd.h
tosrc/env.cc
in order to usegetpid()
. However, this doesn't exist on Windows. This commit conditionally definesgetpid()
based on the OS.Closes #4145
R=@mscdex