Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jul 2009 09:43:44 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/fs/fifofs fifo_vnops.c src/sys/kern sys_pipe.c uipc_socket.c src/sys/sys socketvar.h
Message-ID:  <200907070944.n679ib16025725@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2009-07-07 09:43:44 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/fifofs        fifo_vnops.c 
    sys/kern             sys_pipe.c uipc_socket.c 
    sys/sys              socketvar.h 
  Log:
  SVN rev 195423 on 2009-07-07 09:43:44Z by kib
  
  Fix poll(2) and select(2) for named pipes to return "ready for read"
  when all writers, observed by reader, exited. Use writer generation
  counter for fifo, and store the snapshot of the fifo generation in the
  f_seqcount field of struct file, that is otherwise unused for fifos.
  Set FreeBSD-undocumented POLLINIGNEOF flag only when file f_seqcount is
  equal to fifo' fi_wgen, and revert r89376.
  
  Fix POLLINIGNEOF for sockets and pipes, and return POLLHUP for them.
  Note that the patch does not fix not returning POLLHUP for fifos.
  
  PR:     kern/94772
  Submitted by:   bde (original version)
  Reviewed by:    rwatson, jilles
  Approved by:    re (kensmith)
  MFC after:      6 weeks (might be)
  
  Revision  Changes    Path
  1.152     +14 -20    src/sys/fs/fifofs/fifo_vnops.c
  1.205     +9 -6      src/sys/kern/sys_pipe.c
  1.337     +10 -9     src/sys/kern/uipc_socket.c
  1.171     +3 -2      src/sys/sys/socketvar.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907070944.n679ib16025725>