Commit 3a338ce4 authored by Tollef Fog Heen's avatar Tollef Fog Heen

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/trunk/varnish-cache@4151 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7c36ad08
......@@ -381,9 +381,14 @@ varnish_wait(struct varnish *v)
vtc_log(v->vl, 2, "R %d Status: %04x", r, status);
if (WIFEXITED(status) && WEXITSTATUS(status) == 0)
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