diff options
-rw-r--r-- | twrp.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -20,6 +20,7 @@ #include <sys/types.h> #include <time.h> #include <unistd.h> +#include <signal.h> #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]); |