[PATCH]: possible fix for the fifoor problem
Jung-uk Kim
jkim at FreeBSD.org
Tue Nov 7 16:38:43 UTC 2006
On Monday 06 November 2006 12:40 pm, Divacky Roman wrote:
> pls test
> www.stud.fit.vutbr.cz/~xdivac02/linux-fifoor.patch
>
> and tell me if that helps you with fifoor affected tests (dup05,
> select03)
This patch does not work nor fix the problem. In fact, I spent some
time to tackle this problem. dup05 passes the test but when it
attempts to clean up temporary directory, the fifo is opened with
O_RDONLY in blocking mode. That is why it is blocked forever because
there is no writer for the fifo. Ironically, this is not LTP's
fault, i.e., translate_path_major_minor() in linux_stats.c calls
kern_open() with O_RDONLY in blocking mode. Whenever we use this
function from linux_*stat*(), it is blocked forever. If you change
the function to use (O_RDONLY | O_NONBLOCK), this test passes
normally.
FYI...
Jung-uk Kim
More information about the freebsd-emulation
mailing list