From ff918e63ce478e250721c91eae77ec3477456b84 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 19 Oct 2016 01:06:52 +0300 Subject: Fix msvc-filter to exit with a proper code on VC error --- msvc-filter.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/msvc-filter.cxx b/msvc-filter.cxx index 0a06202..2094ab8 100644 --- a/msvc-filter.cxx +++ b/msvc-filter.cxx @@ -402,7 +402,12 @@ try isf.close (); isp.close (); - return pr.wait () ? 0 : pr.status; + // Passing through the exact child process exit status on failure tends to be + // a bit hairy as involves usage of WIFEXITED(), WEXITSTATUS() and handling + // the situation when the process is terminated with a signal and so exit + // code is unavailable. Lets implement when really required. + // + return pr.wait () ? 0 : 1; } catch (const ios_base::failure&) { -- cgit v1.1