From 2727b99f5576485c42774db143b16b1c2727dcd8 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Wed, 14 Aug 2013 20:09:30 +0000 Subject: Fix problem with not waiting for pigz to exit In some cases compressed backups would not wait for pigz to finish leading to backup files that were 0 bytes or MD5 mismatches. --- twrpTar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'twrpTar.cpp') diff --git a/twrpTar.cpp b/twrpTar.cpp index 8bfbecd13..59d75d0a2 100644 --- a/twrpTar.cpp +++ b/twrpTar.cpp @@ -1251,7 +1251,7 @@ int twrpTar::closeTar() { LOGERR("Unable to close tar archive: '%s'\n", tarfn.c_str()); return -1; } - if (Archive_Current_Type > 1) { + if (Archive_Current_Type > 0) { close(fd); int status; if (pigz_pid > 0 && TWFunc::Wait_For_Child(pigz_pid, &status, "pigz") != 0) -- cgit v1.2.3