ltp icon indicating copy to clipboard operation
ltp copied to clipboard

memcg_test_3: don't send signal when parent unexpectedly exited

Open ZhangHongchen1 opened this issue 3 years ago • 0 comments

When the parent process exits abnormally for some reason, the parent process of the child process will become process 1. In this case, the child process should not send signal to process 1.

So we compare the realy parent pid and the saved parent pid,the child process should exit when they has mismatched.

Signed-off-by: Lingling Li [email protected] Signed-off-by: Hongchen Zhang [email protected]

ZhangHongchen1 avatar May 09 '22 03:05 ZhangHongchen1