cvs: php-src(PHP_5_3) /sapi/litespeed lsapilib.c

From: Date: Sun, 21 Sep 2008 02:34:08 +0000
Subject: cvs: php-src(PHP_5_3) /sapi/litespeed lsapilib.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-53230@lists.php.net to get a copy of this message
gwang Sun Sep 21 02:34:08 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/sapi/litespeed lsapilib.c Log: disable core dump by default http://cvs.php.net/viewvc.cgi/php-src/sapi/litespeed/lsapilib.c?r1=1.5.2.3&r2=1.5.2.4&diff_format=u Index: php-src/sapi/litespeed/lsapilib.c diff -u php-src/sapi/litespeed/lsapilib.c:1.5.2.3 php-src/sapi/litespeed/lsapilib.c:1.5.2.4 --- php-src/sapi/litespeed/lsapilib.c:1.5.2.3 Tue Aug 26 22:05:17 2008 +++ php-src/sapi/litespeed/lsapilib.c Sun Sep 21 02:34:08 2008 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: lsapilib.c,v 1.5.2.3 2008/08/26 22:05:17 gwang Exp $ */ +/* $Id: lsapilib.c,v 1.5.2.4 2008/09/21 02:34:08 gwang Exp $ */ /* Copyright (c) 2007, Lite Speed Technologies Inc. @@ -66,7 +66,9 @@ #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> @@ -2120,7 +2122,16 @@ 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 );

« previous php.cvs (#53230) next »