Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Oct 2001 11:23:50 -0700 (PDT)
From:      Daniel Eischen <deischen@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc_r/uthread uthread_fd.c
Message-ID:  <200110211823.f9LINo559434@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
deischen    2001/10/21 11:23:50 PDT

  Modified files:
    lib/libc_r/uthread   uthread_fd.c 
  Log:
  In the words of the submitter:
  
    In libc_r, if _FDLOCKS_ENABLED is not defined, there is no guarantee
    in many of the sycall wrappers that _thread_fd_table[fd] is
    initialized.  This causes problems for programs that pass in file
    descriptors and execve() another program; when the exec'ed program
    tries to do an fcntl() or other syscall on the passed-in fd, it fails.
  
  Add calls to initialize the FD table entry for _thread_fd_lock and
  _thread_fd_lock_debug.
  
  Submitted by:	Peter S. Housel <housel@acm.org>
  
  Revision  Changes    Path
  1.21      +11 -3     src/lib/libc_r/uthread/uthread_fd.c


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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