cvs commit: src/tools/regression/sockets/socketpair socketpair.c src/sys/kern uipc_syscalls.c

John Baldwin jhb at FreeBSD.org
Mon Apr 2 19:15:48 UTC 2007


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


More information about the cvs-src mailing list