diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2014-12-29 16:10:34 +0100 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2014-12-29 16:25:00 +0100 |
commit | f9f99bcb62e569128d7bcb859bb5eed89a0bdf5a (patch) | |
tree | e3978f27f9122f7a756a60bc35e82349eeb792a0 /twrp.cpp | |
parent | Improve MTPServer logging of read errors (diff) | |
download | android_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.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]); |