]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(__opendir): Don't block on FIFOs etc.
authorUlrich Drepper <drepper@redhat.com>
Wed, 18 Mar 1998 12:21:34 +0000 (12:21 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 18 Mar 1998 12:21:34 +0000 (12:21 +0000)
sysdeps/unix/opendir.c

index b4e691a3af4b9c5b235d08c1c9ce26af8ff0c721..94e8205f25559092aeb22fa1e91a5181d54fbb89 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 93, 94, 95, 96 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 92, 93, 94, 95, 96, 98 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -45,7 +45,7 @@ __opendir (const char *name)
       return NULL;
     }
 
-  fd = __open (name, O_RDONLY);
+  fd = __open (name, O_RDONLY|O_NDELAY);
   if (fd < 0)
     return NULL;