Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Oct 2007 14:58:34 +0000 (UTC)
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/net bpf.c
Message-ID:  <200710121458.l9CEwY9G052781@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
csjp        2007-10-12 14:58:34 UTC

  FreeBSD src repository

  Modified files:
    sys/net              bpf.c 
  Log:
  Make sure that we refresh the PID on read(2) and write(2) operations.
  This fixes the process portion of the bpf(4) stats if the peer forks
  into the background after it's opened the descriptor.  This bug
  results in the following behavior for netstat -B:
  
  # netstat -B
    Pid  Netif  Flags      Recv      Drop     Match Sblen Hblen Command
  netstat: kern.proc.pid failed: No such process
  78023    em0 p--s--   2237404     43119   2237404 13986     0 ??????
  
  MFC after:      1 week
  
  Revision  Changes    Path
  1.182     +2 -0      src/sys/net/bpf.c



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