----- "Matus UHLAR - fantomas" <uhlar@xxxxxxxxxxx> wrote: > Hello, > > 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? nope. mod_fcgid on the other hand can, take a look at it's docs: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html > 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, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/ > 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:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx i -- Igor GaliÄ Tel: +43 (0) 664 886 22 883 Mail: i.galic@xxxxxxxxxxxxxx URL: http://brainsware.org/ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx