From: Ulrich Drepper Date: Wed, 18 Mar 1998 12:21:34 +0000 (+0000) Subject: (__opendir): Don't block on FIFOs etc. X-Git-Tag: cvs/before-sparc-2_0_x-branch~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f5b279d98811da2bf17caa741a2662c709b9290;p=thirdparty%2Fglibc.git (__opendir): Don't block on FIFOs etc. --- diff --git a/sysdeps/unix/opendir.c b/sysdeps/unix/opendir.c index b4e691a3af4..94e8205f255 100644 --- a/sysdeps/unix/opendir.c +++ b/sysdeps/unix/opendir.c @@ -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;