diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-08 04:29:40 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-08 04:29:40 +0000 |
commit | 57d1e4420d7f7981a5e55ad5f66cb1534af30851 (patch) | |
tree | 7de98d0106a3940da1e3c5eb773d5a1de186a905 /zutils.cc | |
parent | Adding upstream version 1.1. (diff) | |
download | zutils-57d1e4420d7f7981a5e55ad5f66cb1534af30851.tar.xz zutils-57d1e4420d7f7981a5e55ad5f66cb1534af30851.zip |
Adding upstream version 1.2~pre2.upstream/1.2_pre2
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'zutils.cc')
-rw-r--r-- | zutils.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -338,7 +338,7 @@ int test_format( const int infd, const uint8_t ** const magic_datap, int wait_for_child( const pid_t pid, const char * const name, - const int eretval ) + const int eretval, const bool isgzxz ) { int status; while( waitpid( pid, &status, 0 ) == -1 ) @@ -355,7 +355,7 @@ int wait_for_child( const pid_t pid, const char * const name, if( WIFEXITED( status ) ) { const int tmp = WEXITSTATUS( status ); - if( eretval == 1 && tmp == 1 ) return 2; // for ztest + if( isgzxz && eretval == 1 && tmp == 1 ) return 2; // for ztest return tmp; } return eretval; |