-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
doc: process.execve is only unavailable for Windows #57726
doc: process.execve is only unavailable for Windows #57726
Conversation
execve() call is available on Android as well. When process.execve was first added, it seems like no one checked if that is actually available on Android as well and works out of the box as __POSIX__ is defined on Android. process.execve call seems to behave just as fine as on Linux environment in my testing, so just make the docs specify it.
7a188a2
to
8e6dd82
Compare
I guess Android is POSIX, it's listed as "Mostly POSIX-compliant" on https://en.wikipedia.org/wiki/POSIX#POSIX-oriented_operating_systems. Given that it seems to be possible to get POSIX for Windows, I wonder if we should keep mentioning POSIX 🤔 |
Also, I don't know if IBMI is POSIX but it doesn't support execve: https://ci.nodejs.org/job/node-test-commit-ibmi/nodes=ibmi74-ppc64/1883/#showFailuresLink @nodejs/platform-ibmi |
@targos It seems the syscall exists but we get a EPERM error somehow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Hi @targos I'm currently investigating why we are getting back EPERM error on IBM i for some reason, execve does exist and I tested it using a simple C program. |
Landed in 78e2f99 |
execve() call is available on Android as well. When process.execve was first added, it seems like no one checked if that is actually available on Android as well and works out of the box as
__POSIX__
is defined on Android. process.execve call seems to behave just as fine as on Linux environment in my testing, so just make the docs specify it.