summaryrefslogtreecommitdiffstats
path: root/twrp.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-12-29 16:10:34 +0100
committerDees Troy <dees_troy@teamw.in>2014-12-29 16:25:00 +0100
commitf9f99bcb62e569128d7bcb859bb5eed89a0bdf5a (patch)
treee3978f27f9122f7a756a60bc35e82349eeb792a0 /twrp.cpp
parentImprove MTPServer logging of read errors (diff)
downloadandroid_bootable_recovery-f9f99bcb62e569128d7bcb859bb5eed89a0bdf5a.tar
android_bootable_recovery-f9f99bcb62e569128d7bcb859bb5eed89a0bdf5a.tar.gz
android_bootable_recovery-f9f99bcb62e569128d7bcb859bb5eed89a0bdf5a.tar.bz2
android_bootable_recovery-f9f99bcb62e569128d7bcb859bb5eed89a0bdf5a.tar.lz
android_bootable_recovery-f9f99bcb62e569128d7bcb859bb5eed89a0bdf5a.tar.xz
android_bootable_recovery-f9f99bcb62e569128d7bcb859bb5eed89a0bdf5a.tar.zst
android_bootable_recovery-f9f99bcb62e569128d7bcb859bb5eed89a0bdf5a.zip
Diffstat (limited to 'twrp.cpp')
-rw-r--r--twrp.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/twrp.cpp b/twrp.cpp
index 24a56f18b..53aab7f66 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -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]);