git: PIPE - Fix bugs in pipe_shutdown(), and multiple readers.

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Aug 8 19:39:14 PDT 2009


commit 930bd1514975d93f8357ff40f5113d940c716090
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Aug 8 19:30:39 2009 -0700

    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.

Summary of changes:
 sys/kern/sys_pipe.c |   35 ++++++++++++++++++-----------------
 sys/sys/pipe.h      |    4 ++--
 2 files changed, 20 insertions(+), 19 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/930bd1514975d93f8357ff40f5113d940c716090


-- 
DragonFly BSD source repository





More information about the Commits mailing list