summary refs log tree commit diff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-05-10 13:00:01 -0700
committerRoland McGrath <roland@hack.frob.com>2012-05-10 15:57:23 -0700
commit802ca5a5efa5d11836b2ffd81c9f6fd42f938ac6 (patch)
tree76c6ff0b620ffd3354e30444a7a652082a8fa1e2 /hurd
parentecd0de9a955fd14e825a666ea6785842e1579326 (diff)
downloadglibc-802ca5a5efa5d11836b2ffd81c9f6fd42f938ac6.tar.gz
glibc-802ca5a5efa5d11836b2ffd81c9f6fd42f938ac6.tar.xz
glibc-802ca5a5efa5d11836b2ffd81c9f6fd42f938ac6.zip
Hurd: Missing critical region locks.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurd/fd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hurd/hurd/fd.h b/hurd/hurd/fd.h
index 5044f977fb..6a79738cb6 100644
--- a/hurd/hurd/fd.h
+++ b/hurd/hurd/fd.h
@@ -63,6 +63,7 @@ _hurd_fd_get (int fd)
 {
   struct hurd_fd *descriptor;
 
+  HURD_CRITICAL_BEGIN;
   __mutex_lock (&_hurd_dtable_lock);
   if (fd < 0 || fd >= _hurd_dtablesize)
     descriptor = NULL;
@@ -85,6 +86,7 @@ _hurd_fd_get (int fd)
 	}
     }
   __mutex_unlock (&_hurd_dtable_lock);
+  HURD_CRITICAL_END;
 
   return descriptor;
 }