httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matus UHLAR - fantomas <>
Subject [users@httpd] kill hanging CGIs
Date Fri, 14 Jan 2011 10:55:09 GMT

we provide our users possibility to upload their own CGI scripts, using
suexec (in a limited environment, for security reasons). 

I found that a user uploaded CGI that calls flock() function which sometimes
makes the CGI hang for a long time (hours).

Is there possibility to automatically kill such CGI processes after some
time, so they won't cross eat our resources (file locks, for example)?

Unfortunately this can't be done by usint RlimitCPU because the process does
nothing or nearly nothing.

Could mod_cgi or suexec kill the process after configured time?

The apache version is 2.2.16 (gentoo linux).

Thank you

P.S. I know that the problem may lie outside of this problem, but I'm afraid
that if processes will hang, I will just have to kill them somehow).
Matus UHLAR - fantomas, ;
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
On the other hand, you have different fingers. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message