PIPE - Fix bugs in pipe_shutdown(), and multiple readers.
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 9 Aug 2009 02:30:39 +0000 (19:30 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 9 Aug 2009 02:30:39 +0000 (19:30 -0700)
commit930bd1514975d93f8357ff40f5113d940c716090
treee68a6d7e39ee8d7a1341b7f94467623fd3e2164e
parent055e0d4f8cf153d36895262ebb1b569a6116428a
PIPE - Fix bugs in pipe_shutdown(), and multiple readers.

* Pipe_shutdown() was setting the wrong EOF bits.

* When multiple readers are present pipe_end_uio() was trying test
  whether an unsigned value was negative, resulting in an endless
  tsleep().  Make the fields in question to signed.

Reported-by: Numerous people.
sys/kern/sys_pipe.c
sys/sys/pipe.h