|No such thing as a small change|
Problem with fork in CGI script (again)by asdfgroup (Beadle)
|on Apr 26, 2003 at 13:33 UTC||Need Help??|
asdfgroup has asked for the
wisdom of the Perl Monks concerning the following question:
Hi, This is repost of Problem with for in CGI with more comments and explaining (it looks like on prev post problems was not so clear for understanding as I thought ;( ). So problem :
I wonna to start some long-running code from web-interface. This can be done 2 ways :
- spawn separate process with help of fork
- use at or cron
Fork looks like more lazy (and right!) way to do this thing.
Unofrtunately my process works fine in command line, but stoped mystically in Apache (after about 10 mins of work)
Code looks like :
Similar running program on the same server works without any problem (about 20 mins of execution).
Apache works under SuEXEC. No ulimits setted (checked both in CGI script and in shell for this user).
Can anybody imagine reason why this can happens ?
Sincerely, Nikita Savin