Thanks, I didn't know about that lseek glitch with the proc file system. I installed the attached patch to the grep master. The use case seems unusual. Did a user discover this in practice?