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.org/~davidxu/patch/grep.c.diff

___






or the patch:
http://people.freebsd.org/~davidxu/patch/grep.c.diff2

The patch opens file with O_NONBLOCK, then turns off O_NONBLOCK,
and only checks if a file is a FIFO in reset() function.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Which MySQL version best to use and with/without linux thread s?

2005-10-04 Thread David Xu

Nick Evans wrote:




I've been benchmarking this on a dual opteron 246 server. mysql 4.1.x and
libthr worked on 5.4, but 6.0 was faster and libthr was definitely faster
than pthreads. There's a thread about this on [EMAIL PROTECTED]

Nick
 



Should libthr be default thread library on 6.x ? :-)

David Xu


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: vesa 1024x768 mode in future version? to the freebsd community

2005-04-07 Thread David Xu
In long run, I really want KGI to be in kernel rather than this footshot 
hack,
give me full framebuffer support.

David Xu
Didier Wiroth wrote:
Dear FreeBSD Team,
Dear FreeBSD Users,
I was wondering if the patches  (see link below) have any chances to make their 
ways into a future release version or may be in the ports collection?
Here are the patches I'm talking about:
http://people.freebsd.org/~delphij/vesa
Actually the vidcontrol.diff patch failed for me so I used these patches:
http://www.nbritton.org/uploads/current-vesa_patch.tar.gz
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"