From 80cb15504324667c9934ff350afff48881613393 Mon Sep 17 00:00:00 2001 From: JP Abgrall Date: Fri, 11 May 2012 14:09:59 -0700 Subject: 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 --- showmap/showmap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'showmap') 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")) { -- cgit v1.2.3