summaryrefslogtreecommitdiffstats
path: root/showmap
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2012-05-11 14:09:59 -0700
committerJP Abgrall <jpa@google.com>2012-05-11 14:09:59 -0700
commit80cb15504324667c9934ff350afff48881613393 (patch)
tree03d15e68bd56e456b89d082b65260c0c3b3b59eb /showmap
parent585c219b9b7c2e89b8db6707cacdaf29c362e7ba (diff)
downloadandroid_system_extras-80cb15504324667c9934ff350afff48881613393.tar.gz
android_system_extras-80cb15504324667c9934ff350afff48881613393.tar.bz2
android_system_extras-80cb15504324667c9934ff350afff48881613393.zip
Ignore SIGPIPE is some of the tools used via dumpstate
adb bugreport > b & sleep 5; kill $? will show that a bunch of tools will SIGPIPE when trying to output data which is normal. We don't have a way on linux (bsd yes), to set NOSIGPIPE on the file desc passed down via fork/exec. Bug: 6447319 Change-Id: I1634a00a155fd8a3fd827aa4a77e94518534336c
Diffstat (limited to 'showmap')
-rw-r--r--showmap/showmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/showmap/showmap.c b/showmap/showmap.c
index bb359f65..f8ee9358 100644
--- a/showmap/showmap.c
+++ b/showmap/showmap.c
@@ -321,6 +321,7 @@ int main(int argc, char *argv[])
char *arg;
char *argend;
+ signal(SIGPIPE, SIG_IGN);
for (argc--, argv++; argc > 0; argc--, argv++) {
arg = argv[0];
if (!strcmp(arg,"-v")) {