summaryrefslogtreecommitdiff
path: root/mjit.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-30 03:50:52 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-30 03:50:52 +0000
commite4600b87b5a13412fc8f46da22d4f224732e6769 (patch)
tree10626770c82d0d16068434bfed0b5c8069b3de89 /mjit.c
parentce2a3b40ed06a25e9292dd7d02b311510d0ba8e2 (diff)
mjit: provide more diagnostics for waitpid failures
Also, enable check for defined(_WIN32) macro for SIGCHLD_LOSSY, too. [Bug #14867] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mjit.c b/mjit.c
index fb4b153cc3..49bac227a0 100644
--- a/mjit.c
+++ b/mjit.c
@@ -422,8 +422,9 @@ exec_process(const char *path, char *const argv[])
: waitpid(pid, &stat, 0);
if (r == -1) {
if (errno == EINTR) continue;
- fprintf(stderr, "[%d] waitpid(%d): %s\n",
- getpid(), pid, strerror(errno));
+ fprintf(stderr, "[%d] waitpid(%d): %s (SIGCHLD=%d,%u)\n",
+ getpid(), pid, strerror(errno),
+ RUBY_SIGCHLD, SIGCHLD_LOSSY);
break;
}
else if (r == pid) {