Searched hist:175821 (Results 1 - 2 of 2) sorted by relevance

/freebsd-11.0-release/tools/regression/sockets/unix_sorflush/
H A Dunix_sorflush.c175821 Wed Jan 30 13:23:34 MST 2008 rwatson 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>
H A DMakefile175821 Wed Jan 30 13:23:34 MST 2008 rwatson 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>

Completed in 44 milliseconds