[LTP] [PATCH] test_children_cleanup: allow child zombied for a while

Li Wang liwang@redhat.com
Mon Feb 14 12:21:44 CET 2022


> > +elif grep -q -E "Z|zombie" /proc/$CHILD_PID/status; then
>
> task_state_array[] in fs/proc/array.c has "Z (zombie)"
> Is there a reason to grep just "Z"? Because -E "Z|zombie" matches just "Z"
> and
> when we don't grep for "State:" we can likely search for different result.
> "Z (zombie)" is here form kernel git beginning (2.6.12-rc2), we should
> match it.
>

Thanks for pointing out this, but it seems this fix-way will be superseded.

-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20220214/30a57e5e/attachment.htm>


More information about the ltp mailing list