Commit 46506883 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Merge r4151: Add #ifdef for WCOREDUMP

AIX doesn't have WCOREDUMP, so compilation failed there.  Add #ifdef.

Partially addresses #531.



git-svn-id: http://www.varnish-cache.org/svn/branches/2.0@4296 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent bd7206af
......@@ -326,9 +326,14 @@ varnish_wait(struct varnish *v)
vtc_log(v->vl, 2, "R %d Status: %04x", r, status);
if (WIFEXITED(status) && WEXITSTATUS(status) == 2)
return;
#ifdef WCOREDUMP
vtc_log(v->vl, 0, "Bad exit code: %04x sig %x exit %x core %x",
status, WTERMSIG(status), WEXITSTATUS(status),
WCOREDUMP(status));
#else
vtc_log(v->vl, 0, "Bad exit code: %04x sig %x exit %x",
status, WTERMSIG(status), WEXITSTATUS(status));
#endif
}
/**********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment