Changeset 4a3c920 in rtems


Ignore:
Timestamp:
May 4, 2015, 7:30:21 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
776a50c
Parents:
2b0bbc4
git-author:
Sebastian Huber <sebastian.huber@…> (05/04/15 07:30:21)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/19/15 10:00:44)
Message:

libcsupport: Fix umask() locking

Delete comment related to an obsolete implementation of
rtems_libio_set_private_env().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/umask.c

    r2b0bbc4 r4a3c920  
    2222
    2323#include <rtems/libio_.h>
    24 #include <rtems/score/threaddispatch.h>
    2524
    2625/**
     
    3130  mode_t old_mask;
    3231
    33   /*
    34    * We must use the same protection mechanism as in
    35    * rtems_libio_set_private_env().
    36    */
    37   _Thread_Disable_dispatch();
     32  rtems_libio_lock();
    3833  old_mask = rtems_filesystem_umask;
    3934  rtems_filesystem_umask = cmask & (S_IRWXU | S_IRWXG | S_IRWXO);
    40   _Thread_Enable_dispatch();
     35  rtems_libio_unlock();
    4136
    4237  return old_mask;
Note: See TracChangeset for help on using the changeset viewer.