]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make error checking less zealous to handle devices like /dev/null
authorJohn Birrell <jb@FreeBSD.org>
Tue, 1 Apr 1997 22:49:58 +0000 (22:49 +0000)
committerJohn Birrell <jb@FreeBSD.org>
Tue, 1 Apr 1997 22:49:58 +0000 (22:49 +0000)
commit745a12fc30cfd41506c8b3a7b16b27bf9cab94ed
treed306a48a5e9e1daab8c5833c1433ec84a73c3db6
parente710f8d85bb8ba0acdcd0e5b4bfa2b1abac9ed46
Make error checking less zealous to handle devices like /dev/null
which don't provide a non-blocking interface.

This is a short term "fix" which changes a half-lose to a half-win.
The thread that accesses a device that does not provide a non-blocking
interface will block for its time slice.

A medium term solution would be to use rfork. A long-term solution
would be some sort of kernel thread/SMP implementation.
lib/libc_r/uthread/uthread_fd.c