fork dies
Juha-Jarmo Heinonen <[email protected]>
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
I have this problem involving making a subprocess under mod_ruby.
(It works fine when it's implemented as a cgi.)
-----------
fork { some_really_expensive_background_process }
-----------
The fork lives only as long as the request. Using sleep() makes the
request
live a little longer, but the fork will die anyway and won't solve the
problem.
The fork process could take hours to complete..
I have already solved my problem sub-optimally as a cronjob-kludge.
I'd anyway want to know if this behavior is a bug or "feature" in
mod_ruby? ;)