Octavian Voicu : ntdll: Show one-time ERR if NOFILE limit is reached.

Alexandre Julliard julliard at winehq.org
Fri Jun 11 09:58:33 CDT 2010


Module: wine
Branch: master
Commit: 0d8e7983c14cd0c8f0672dfd16b5a452ded7849e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0d8e7983c14cd0c8f0672dfd16b5a452ded7849e

Author: Octavian Voicu <octavian.voicu at gmail.com>
Date:   Fri Jun 11 12:13:17 2010 +0300

ntdll: Show one-time ERR if NOFILE limit is reached.

---

 dlls/ntdll/file.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index b5d1c14..30b93aa 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -87,6 +87,7 @@
 #include "ddk/ntddser.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(ntdll);
+WINE_DECLARE_DEBUG_CHANNEL(winediag);
 
 mode_t FILE_umask = 0;
 
@@ -203,6 +204,11 @@ static NTSTATUS FILE_CreateFile( PHANDLE handle, ACCESS_MASK access, POBJECT_ATT
             break;
         }
     }
+    else if (io->u.Status == STATUS_TOO_MANY_OPENED_FILES)
+    {
+        static int once;
+        if (!once++) ERR_(winediag)( "Too many open files, ulimit -n probably needs to be increased\n" );
+    }
 
     return io->u.Status;
 }




More information about the wine-cvs mailing list