cvs commit: src/sys/kern sys_pipe.c

Jean-Sebastien Pedron dumbbell at
Sun Nov 25 03:54:28 PST 2007

dumbbell    2007-11-25 11:54:27 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/kern             sys_pipe.c 
  MFC 1.193:
    The kernel uses two ways to write data on a pipe:
        o  buffered write, for chunks smaller than PIPE_MINDIRECT bytes
        o  direct write, for everything else
    A call to writev(2) may receive struct iov of various size and the
    kernel may have to switch from one solution to the other. Before doing
    this, it must wake reader processes and any select/poll/kqueue up.
    This commit fixes a bug where select/poll/kqueue are not triggered
    when switching from buffered write to direct write. It adds calls to
    I give more details on freebsd-arch@:
    This should fix issues with Erlang (lang/erlang) and kqueue.
  Reported by:    Rickard Green (Erlang)
  Approved by:    re (kensmith)
  Revision   Changes    Path  +3 -0      src/sys/kern/sys_pipe.c

More information about the cvs-src mailing list