Author: tschoening
Date: Fri Jul 8 06:27:32 2016
New Revision: 1751863
URL: http://svn.apache.org/viewvc?rev=1751863&view=rev
Log:
If the child zip-process fails, throw an IOException, like with all the other
errors.
Modified:
incubator/log4cxx/trunk/src/main/cpp/zipcompressaction.cpp
Modified: incubator/log4cxx/trunk/src/main/cpp/zipcompressaction.cpp
URL:
http://svn.apache.org/viewvc/incubator/log4cxx/trunk/src/main/cpp/zipcompressaction.cpp?rev=1751863&r1=1751862&r2=1751863&view=diff
==============================================================================
--- incubator/log4cxx/trunk/src/main/cpp/zipcompressaction.cpp (original)
+++ incubator/log4cxx/trunk/src/main/cpp/zipcompressaction.cpp Fri Jul 8
06:27:32 2016
@@ -81,7 +81,9 @@ bool ZipCompressAction::execute(log4cxx:
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)
{