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

This commit is contained in:
Octavian Voicu 2010-06-11 12:13:17 +03:00 committed by Alexandre Julliard
parent 13a7708abb
commit 0d8e7983c1
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}