If remove fflush() as the previous patch, unexpected result will be caused in grep -Z. I fixed it.