Searched hist:126131 (Results 1 - 1 of 1) sorted by relevance
/freebsd-10.0-release/sys/kern/ | ||
H A D | sys_pipe.c | diff 126131 Sun Feb 22 21:00:14 MST 2004 green Correct some major SMP-harmful problems in the pipe implementation. First of all, PIPE_EOF is not checked pervasively after everything that can drop the pipe mutex and msleep(), so fix. Additionally, though it might not harm anything, pipelock() and pipeunlock() are not used consistently. Third, the kqueue support functions do not use the pipe mutex correctly. Last, but absolutely not least, is a race: if pipe_busy is not set on the closing side of the pipe, the other side that is trying to write to that will crash BECAUSE PIPE_EOF IS NOT SET! Unconditionally set PIPE_EOF, and get rid of all the lockups/crashes I have seen trying to build ports. |
Completed in 120 milliseconds