summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortschoening <tschoening@13f79535-47bb-0310-9956-ffa450edef68>2016-07-08 06:27:32 +0000
committertschoening <tschoening@13f79535-47bb-0310-9956-ffa450edef68>2016-07-08 06:27:32 +0000
commit0ced598aa36412e34e9b41e6c93f1aa5fcec0534 (patch)
treeda8e6ea7aa1541d51cdea431f976a7bf8a3cd8f6
parent25edbb8e734b4adfafaee94aae0258e31d9b1acb (diff)
downloadlog4cxx-0ced598aa36412e34e9b41e6c93f1aa5fcec0534.tar.gz
If the child zip-process fails, throw an IOException, like with all the other errors.
git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1751863 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/main/cpp/zipcompressaction.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/cpp/zipcompressaction.cpp b/src/main/cpp/zipcompressaction.cpp
index 90f6333..a67d8ec 100644
--- a/src/main/cpp/zipcompressaction.cpp
+++ b/src/main/cpp/zipcompressaction.cpp
@@ -81,7 +81,9 @@ bool ZipCompressAction::execute(log4cxx::helpers::Pool& p) const
stat = apr_proc_create(&pid, "zip", args, NULL, attr, aprpool);
if (stat != APR_SUCCESS) throw IOException(stat);
- apr_proc_wait(&pid, NULL, NULL, APR_WAIT);
+ int exitCode;
+ apr_proc_wait(&pid, &exitCode, NULL, APR_WAIT);
+ if (exitCode != APR_SUCCESS) throw IOException(exitCode);
if (deleteSource)
{