diff --git a/twrp.cpp b/twrp.cpp index 24a56f18..53aab7f6 100644 --- a/twrp.cpp +++ b/twrp.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include "cutils/properties.h" extern "C" { @@ -72,6 +73,8 @@ int main(int argc, char **argv) { freopen(TMP_LOG_FILE, "a", stderr); setbuf(stderr, NULL); + signal(SIGPIPE, SIG_IGN); + // Handle ADB sideload if (argc == 3 && strcmp(argv[1], "--adbd") == 0) { adb_main(argv[2]);