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 7d8a2d1 commit fe34e95Copy full SHA for fe34e95
1 file changed
process.c
@@ -4756,6 +4756,11 @@ rb_posix_spawn(struct rb_execarg *eargp)
4756
posix_spawn_file_actions_destroy(&file_actions);
4757
4758
if (err) {
4759
+ // posix_spawn only returns fork/vfork/clone failures.
4760
+ // If it failed but errno == 0, then it must be an "exec" failure.
4761
+ if (errno == 0) {
4762
+ eaccess(abspath, X_OK);
4763
+ }
4764
rb_sys_fail(abspath);
4765
}
4766
0 commit comments