diff options
Diffstat (limited to 'msvc-filter.cxx')
-rw-r--r-- | msvc-filter.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
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&) { |