What is the reason why the Android parent process is forced to kill, the child process? How to solve it at the system level?

on Android 4.4, the child process is created by the parent process. According to the process id, the child process manually kill the parent process, but the child process is still running and is not killed. As a result, the child process is not re-created when the parent process is pulled up again. How to deal with it at the system level and kill the child process when the parent process dies at the same time.


put aside Android,

in linux, it is too normal for child processes to run after the parent process exits (is there anything special about Android?). If it is necessary to kill the child process when the parent process dies, the child process can use prctl to finish

.
prctl(PR_SET_PDEATHSIG, SIGKILL); 
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38711-2c12e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38711-2c12e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?