diff options
-rw-r--r-- | twcommon.h | 1 | ||||
-rw-r--r-- | twrpTarMain/twrpTarMain.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/twcommon.h b/twcommon.h index d54446f23..be243236f 100644 --- a/twcommon.h +++ b/twcommon.h @@ -10,6 +10,7 @@ extern "C" { #define LOGERR(...) gui_print_color("error", "E:" __VA_ARGS__) #define LOGINFO(...) fprintf(stdout, "I:" __VA_ARGS__) #else +#include <stdio.h> #define LOGERR(...) printf("E:" __VA_ARGS__) #define LOGINFO(...) printf("I:" __VA_ARGS__) #define gui_print(...) printf( __VA_ARGS__ ) 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; } |