grep -Dskip doesn't skip FIFOs

2012-12-05 Thread Marco Steinbach
Hi there, grep(1) does not seem to skip FIFOs when told to. coco@probsd:~ uname -a FreeBSD probsd.c0c0.intra 8.3-STABLE FreeBSD 8.3-STABLE #0 r243477: Sat Nov 24 11:07:17 CET 2012 root@x2.c0c0.intra:/usr/obj/usr/src/sys/GATEKEEPER i386 coco@probsd:~ mkfifo bleh coco@probsd:~ ls -l ble

Re: grep -Dskip doesn't skip FIFOs

2012-12-05 Thread David Xu
On 2012/12/06 07:07, Marco Steinbach wrote: Hi there, grep(1) does not seem to skip FIFOs when told to. I think you need a patch to fix it, the bug is in ggrep, it tries to open a FIFO before checking if it is a FIFO, then blocked. http://people.freebsd.org/~davidxu/patch/grep.c.diff _

Re: grep -Dskip doesn't skip FIFOs

2012-12-05 Thread David Xu
On 2012/12/06 11:28, David Xu wrote: On 2012/12/06 07:07, Marco Steinbach wrote: Hi there, grep(1) does not seem to skip FIFOs when told to. I think you need a patch to fix it, the bug is in ggrep, it tries to open a FIFO before checking if it is a FIFO, then blocked. http://people.freebsd

Re: grep -Dskip doesn't skip FIFOs

2012-12-06 Thread Marco Steinbach
David Xu wrote on 06.12.2012 04:28: On 2012/12/06 07:07, Marco Steinbach wrote: Hi there, grep(1) does not seem to skip FIFOs when told to. I think you need a patch to fix it, the bug is in ggrep, it tries to open a FIFO before checking if it is a FIFO, then blocked. http://people.freebsd.

Re: grep -Dskip doesn't skip FIFOs

2012-12-06 Thread Marco Steinbach
David Xu wrote on 06.12.2012 04:46: On 2012/12/06 11:28, David Xu wrote: On 2012/12/06 07:07, Marco Steinbach wrote: Hi there, grep(1) does not seem to skip FIFOs when told to. I think you need a patch to fix it, the bug is in ggrep, it tries to open a FIFO before checking if it is a FIFO,