NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/26567 CVS commit: src/sys/kern
The following reply was made to PR kern/26567; it has been noted by GNATS.
From: David Laight <dsl%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/26567 CVS commit: src/sys/kern
Date: Sun, 13 Dec 2009 20:02:24 +0000
Module Name: src
Committed By: dsl
Date: Sun Dec 13 20:02:23 UTC 2009
Modified Files:
src/sys/kern: sys_pipe.c
Log Message:
Another, better, fix for PR/26567.
Only sleep once within each pipe_read/pipe_write call.
If there is no data/space available after we wakeup return ERESTART so
then the 'fd' number is validated again.
A simple broadcast of the cvs is then enough to evict the correct threads
when close() is called from an active thread.
To generate a diff of this commit:
cvs rdiff -u -r1.124 -r1.125 src/sys/kern/sys_pipe.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index