httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] CGI help on apache needed
Date Wed, 05 Jul 2006 16:04:04 GMT
On 7/5/06, William A. Rowe, Jr. <wrowe@rowe-clan.net> wrote:
> Joshua Slive wrote:
> > On 7/5/06, Rajat Sharma <rsharma@airvana.com> wrote:
> >
> >> My cgi script needs to do some dirty work. User is supposed to be
> >> notified
> >> via email when the job is done.
> >
> >> Issue is that the after submit of the page, the IE still keeps loading
> >> the
> >> page until the long\dirty job is over.
> >>
> >> How can I make line 1 come up as an instant page.
> >
> > I've never done this myself, but I believe you need to close stdin and
> > stderr as well as stdout.
>
> I'm near certain that would lead to apache ultimately clobbering the child
> process.  The best way to handle this is your own daemon, which your cgi
> tells to 'go' and then returns immediate to apache after printing the
> status message.  Even if apache serves this request, I believe the worker
> slot will block on the process to exit, or axe it.

As I've said, I've never done it.  But this is a very old FAQ, and it
should work the way I described:
http://www.htmlhelp.com/faq/cgifaq.3.html#8

Joshua.

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message