Changeset 3382


Ignore:
Timestamp:
Jun 10, 2007, 8:10:09 AM (18 years ago)
Author:
bird
Message:

clear the no-inherit and close-on-exec flags when duplicating a tcpip socket. Fixes #172.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/libc-0.6/src/emx/src/lib/sys/tcpipver.c

    r3372 r3382  
    376376    {
    377377        pFHNew->core.fFlags      = pFHSocket->core.fFlags;
     378        pFHNew->core.fFlags     &= ~((FD_CLOEXEC << __LIBC_FH_FDFLAGS_SHIFT) | O_NOINHERIT);
    378379        pFHNew->core.iLookAhead  = pFHSocket->core.iLookAhead;
    379380        pFHNew->core.Inode       = pFHSocket->core.Inode;
  • TabularUnified trunk/libc/src/kNIX/os2/tcpipver.c

    r3372 r3382  
    367367    {
    368368        pFHNew->core.fFlags      = pFHSocket->core.fFlags;
     369        pFHNew->core.fFlags     &= ~((FD_CLOEXEC << __LIBC_FH_FDFLAGS_SHIFT) | O_NOINHERIT);
    369370        pFHNew->core.iLookAhead  = pFHSocket->core.iLookAhead;
    370371        pFHNew->core.Inode       = pFHSocket->core.Inode;
Note: See TracChangeset for help on using the changeset viewer.