summaryrefslogtreecommitdiffstats
path: root/twrpTarMain/twrpTarMain.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2015-09-25 18:25:20 +0200
committerDees Troy <dees_troy@teamw.in>2015-10-15 16:15:09 +0200
commit068c76888b1ef1b262c718e3df53ea7b5c06a959 (patch)
treed6ca7ce807c378709afbbe7111390a2dc874aa2f /twrpTarMain/twrpTarMain.cpp
parentImprove error handling for zip install (diff)
downloadandroid_bootable_recovery-068c76888b1ef1b262c718e3df53ea7b5c06a959.tar
android_bootable_recovery-068c76888b1ef1b262c718e3df53ea7b5c06a959.tar.gz
android_bootable_recovery-068c76888b1ef1b262c718e3df53ea7b5c06a959.tar.bz2
android_bootable_recovery-068c76888b1ef1b262c718e3df53ea7b5c06a959.tar.lz
android_bootable_recovery-068c76888b1ef1b262c718e3df53ea7b5c06a959.tar.xz
android_bootable_recovery-068c76888b1ef1b262c718e3df53ea7b5c06a959.tar.zst
android_bootable_recovery-068c76888b1ef1b262c718e3df53ea7b5c06a959.zip
Diffstat (limited to '')
-rw-r--r--twrpTarMain/twrpTarMain.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/twrpTarMain/twrpTarMain.cpp b/twrpTarMain/twrpTarMain.cpp
index c1705c79c..6cc629d7d 100644
--- a/twrpTarMain/twrpTarMain.cpp
+++ b/twrpTarMain/twrpTarMain.cpp
@@ -48,6 +48,7 @@ int main(int argc, char **argv) {
unsigned j;
string Directory, Tar_Filename;
unsigned long long temp1 = 0, temp2 = 0;
+ pid_t tar_fork_pid = 0;
#ifndef TW_EXCLUDE_ENCRYPTED_BACKUPS
string Password;
#endif
@@ -143,7 +144,7 @@ int main(int argc, char **argv) {
}
#endif
if (action == 1) {
- if (tar.createTarFork(&temp1, &temp2) != 0) {
+ if (tar.createTarFork(&temp1, &temp2, tar_fork_pid) != 0) {
sync();
return -1;
}