<div dir="ltr"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> +elif grep -q -E "Z|zombie" /proc/$CHILD_PID/status; then<br>
<br>
task_state_array[] in fs/proc/array.c has "Z (zombie)"<br>
Is there a reason to grep just "Z"? Because -E "Z|zombie" matches just "Z" and<br>
when we don't grep for "State:" we can likely search for different result.<br>
"Z (zombie)" is here form kernel git beginning (2.6.12-rc2), we should match it.<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Thanks for pointing out this, but it seems this fix-way will be superseded.</div></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>