#include <stdio.h>
#include <string.h>
#include <sys/mman.h>
+#include <sys/resource.h>
#include <sys/socket.h>
+#include <sys/time.h>
#include <sys/uio.h>
#include <sys/wait.h>
#include <time.h>
if ( p ) {
avoidFork = atoi( p );
}
-
+
+#if defined( RLIMIT_CORE )
+ p = getenv( "LSAPI_ALLOW_CORE_DUMP" );
+ if ( !p )
+ {
+ struct rlimit limit = { 0, 0 };
+ setrlimit( RLIMIT_CORE, &limit );
+ }
+#endif
+
p = getenv( "LSAPI_MAX_IDLE" );
if ( p ) {
n = atoi( p );