httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: apache-search-site index.cgi
Date Sun, 28 Jan 2001 23:05:16 GMT
dirkx       01/01/28 15:05:16

  Modified:    .        index.cgi
  Log:
  Adding limit's around runaway swish-e processes spotted
  by Brian yesterday. Also note that we found two core dumps
  in this directory as well. I need to keep a daily eye on this.
  
  Revision  Changes    Path
  1.4       +6 -2      apache-search-site/index.cgi
  
  Index: index.cgi
  ===================================================================
  RCS file: /home/cvs/apache-search-site/index.cgi,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -u -r1.3 -r1.4
  --- index.cgi	2001/01/19 06:12:21	1.3
  +++ index.cgi	2001/01/28 23:05:15	1.4
  @@ -33,6 +33,10 @@
   # would nail these values down.
   #
   $swish = '/usr/local/bin/swish-e';
  +#
  +# Limits to no core, 2 meg, 9 seconds
  +#
  +$limits = '/usr/bin/limits -t 90s -m 2m -c 0 ';
   
   # # No user servicable parts beyond here.
   #
  @@ -154,8 +158,8 @@
   # the shell; they are kept honest by a s/<only normals>//i in the
   # param decoding loop above.
   #
  -if (!(open(SWISH, "$swish -w \"$query\" -m $max $list |"))) {
  -	&search_error("Configuration/Resource problem");
  +if (!(open(SWISH, "$limits $swish -w \"$query\" -m $max $list |"))) {
  +	&search_error("Configuration/Resource problem: $! $? $@");
   	exit 1;
   	};
   
  
  
  

Mime
View raw message