replicant-frameworks_native/cmds/dumpstate
John Michelau e7b6cf13f9 Ensure dumpstate children die
Use prctl(PR_SET_PDEATHSIG, SIGKILL) in each forked child to ensure
it dies when dumpstate dies.

This is important for two cases:
- dumpstate runs a timer for each child process.  On expiration, it
  sends SIGTERM to kill the process.  Sometimes SIGTERM isn't enough
  to kill a hung process, so the child lives on.
- When dumpstate is killed by the user before completing, outstanding
  children continue to run and generate output.

Change-Id: I96e0dc918c26d56c9fee53611980ba2edd238712
2013-03-11 11:44:15 -05:00
..
Android.mk Include stack traces for certain native processes in bugreport. 2012-06-08 11:45:00 -07:00
dumpstate.c dumpstate: use correct header file. 2013-02-28 16:46:22 -08:00
dumpstate.h Include stack traces for certain native processes in bugreport. 2012-06-08 11:45:00 -07:00
utils.c Ensure dumpstate children die 2013-03-11 11:44:15 -05:00