Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2008 13:23:34 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/tools/regression/sockets/unix_sorflush Makefile unix_sorflush.c
Message-ID:  <200801301323.m0UDNZPd045445@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801301323.m0UDNZPd045445>