OSDN Git Service

Fix deadlock when killing adb bugreport
authorAndres Morales <anmorales@google.com>
Thu, 21 Aug 2014 19:38:22 +0000 (12:38 -0700)
committerAndres Morales <anmorales@google.com>
Fri, 22 Aug 2014 19:10:44 +0000 (12:10 -0700)
commit2e671bbdb741c2926b6df7b240fdc31c7361f330
tree9ab264a786cbb21c93cec436b11f6cc40da0fda8
parent61a4eecbe615bc94944161c4cf4aa590dfca1b2e
Fix deadlock when killing adb bugreport

Leave default signal handler (terminate) for parent process,
add SIG_IGN as signal handler for children and let them
go down when the parent gets SIGPIPE.

Bug: 17109154
Change-Id: Id33db3e97a32f289eb2a9a1a0ca8acbe3dcd285d
cmds/dumpstate/dumpstate.c
cmds/dumpstate/utils.c