cvs commit: src/tools/regression/sockets/unix_sorflush Makefile
unix_sorflush.c
Robert Watson
rwatson at FreeBSD.org
Wed Jan 30 05:23:36 PST 2008
rwatson 2008-01-30 13:23:34 UTC
FreeBSD src repository
Added files:
tools/regression/sockets/unix_sorflush Makefile
unix_sorflush.c
Log:
Add unix_sorflush, a regression test for the following scenario:
- Process (a) is blocked in read on a socket waiting on data.
- Process (b) is blocked in shutdown() on a socket waiting on (a).
- Process (c) delivers a signal to (b) interrupting its wait.
When the signal is delivered, the kernel panics as sblock() fails in
sorflush(). Even if it didn't panic, shutdown() would block potentially
indefinitely waiting for recv() to succeeded. Fixes to follow.
Reported by: Jos Backus <jos at catnook dot com>
Revision Changes Path
1.1 +7 -0 src/tools/regression/sockets/unix_sorflush/Makefile (new)
1.1 +99 -0 src/tools/regression/sockets/unix_sorflush/unix_sorflush.c (new)
More information about the cvs-src
mailing list