ts-7000
[Top] [All Lists]

[ts-7000] Re: adc_logger from apache

To:
Subject: [ts-7000] Re: adc_logger from apache
From: "j.chitte" <>
Date: Tue, 19 Feb 2008 03:33:45 -0000
--- 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/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU