Changeset 2544 for branches


Ignore:
Timestamp:
Feb 7, 2006, 5:28:06 AM (20 years ago)
Author:
bird
Message:

#53: Fixed LIBC panic when _openstream locks the stream vector in any of it's error cases.

Location:
branches/libc-0.6/src/emx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/ChangeLog.LIBC

    r2543 r2544  
    552006-02-06: knut st. osmundsen <bird-gccos2-spam@anduin.net>
    66    - libc:
     7        o #53: Fixed LIBC panic when _openstream locks the stream vector
     8          in any of it's error cases.
    79        o #52: Fixed two 'symlink/' problems in the path resolver.
    810        o #51: Made unlink able to delete readonly files.
  • branches/libc-0.6/src/emx/src/lib/io/_fopen.c

    r1661 r2544  
    3535    default:
    3636      errno = EINVAL;
    37       STREAMV_LOCK;
     37      if (lock)
     38        STREAMV_LOCK;
    3839      _closestream (dst);
    39       STREAMV_UNLOCK;
     40      if (lock)
     41        STREAMV_UNLOCK;
    4042      return NULL;
    4143    }
     
    8385  if (_fmutex_create2 (&dst->__u.__fsem, 0, "LIBC stream fopen") != 0)
    8486    {
    85       STREAMV_LOCK;
     87      if (lock)
     88        STREAMV_LOCK;
    8689      _closestream (dst);
    87       STREAMV_UNLOCK;
     90      if (lock)
     91        STREAMV_UNLOCK;
    8892      return NULL;
    8993    }
     
    9195  if (dst->_handle < 0)
    9296    {
    93       STREAMV_LOCK;
     97      if (lock)
     98        STREAMV_LOCK;
    9499      _closestream (dst);
    95       STREAMV_UNLOCK;
     100      if (lock)
     101        STREAMV_UNLOCK;
    96102      return NULL;
    97103    }
Note: See TracChangeset for help on using the changeset viewer.