Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Apr 2007 19:15:47 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/tools/regression/sockets/socketpair socketpair.c src/sys/kern uipc_syscalls.c
Message-ID:  <200704021915.l32JFmcS035471@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2007-04-02 19:15:47 UTC

  FreeBSD src repository

  Modified files:
    tools/regression/sockets/socketpair socketpair.c 
    sys/kern             uipc_syscalls.c 
  Log:
  Fix a fd leak in socketpair():
  - Close the new file objects created during socketpair() if the copyout of
    the new file descriptors fails.
  - Add a test to the socketpair regression test for this edge case.
  
  Revision  Changes    Path
  1.249     +7 -2      src/sys/kern/uipc_syscalls.c
  1.2       +33 -0     src/tools/regression/sockets/socketpair/socketpair.c



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