--- In Jim Jackson <> wrote:
>
>
>
>
> On Mon, 18 Feb 2008, j.chitte wrote:
>
> > --- In Jim Jackson <jj@> wrote:
> >
> >> The programs you start in the background, are still children of
apache,
> >> and it is probably being too parental :-)
> >>
> >> Really they need to "daemon"ise themselves, so that apache can
forget
> >> about them. You may want to further mod adc_logger to call the
daemon
> >> function if called with a certain flag.
> >>
> >
> > Well that sounded so much like the right answer.
> >
> > But it did not change the flow at the end of the day.
> >
> > I call daemon before entering the sampling loop and check it's
return
> > value is zero.
>
> Have you run pstree to discover if your program has init as it's
parent
> instead of apache? Just to double check.
>
> Sorry but I'm fresh out of ideas now.
>
> > However , on the browser end it remains the same. I have an
onload
> > event handler defined to pop an alert(), so I can confirm that
even
> > with the deamon call the browser is still waiting on something
until
> > I either killall adc_logger or it finishes its business in a
finite
> > run.
> >
> > Most annoying.
>
Ahh!
init-+-adc_logger
+-apache-ssl-+-apache-ssl---post.cgi
| +-5*[apache-ssl]
| +-gcache
looks like adc_logger is detatching correctly but it's the cgi that's
not terminating. If I kill adc_logger post.cgi finally goes away.
just after starting the logger post closes the HTML output and exits.
printf(backBtn);
printf("</BODY></HTML>\n\n");
fflush(stdout);
exit (0);
} /* end main */
I suppose I could detatch post as well but I dont really see why that
should be necessary.
can you see why it's still live?
thanks for your help.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|