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.
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index fc76c1a..fb3da5a 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -611,6 +611,8 @@
if ((*subpart)->Can_Be_Backed_Up && (*subpart)->Is_SubPartition && (*subpart)->SubPartition_Of == Part->Mount_Point) {
if (!(*subpart)->Backup(Backup_Folder))
return false;
+ sync();
+ sync();
if (!Make_MD5(generate_md5, Backup_Folder, (*subpart)->Backup_FileName))
return false;
if (Part->Backup_Method == 1) {