We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b2edef commit 1f0c181Copy full SHA for 1f0c181
1 file changed
process.c
@@ -4754,6 +4754,11 @@ rb_posix_spawn(struct rb_execarg *eargp)
4754
posix_spawn_file_actions_destroy(&file_actions);
4755
4756
if (err) {
4757
+ // posix_spawn only returns fork/vfork/clone failures.
4758
+ // If it failed but errno == 0, then it must be an "exec" failure.
4759
+ if (errno == 0) {
4760
+ eaccess(abspath, X_OK);
4761
+ }
4762
rb_sys_fail(abspath);
4763
}
4764
0 commit comments