> On Thu, 2005-11-10 at 07:37 -0500, [EMAIL PROTECTED] wrote:
> >   I thought .....                 that on shutdown the agent
> > tells the subagent to save its persistent values.
> 
> Hmmm...  that's an idea, I suppose.
> In general, the administration side of the AgentX protocol
> is very much driven by the subagent - the master agent just
> listens for incoming registrations.
> 
> But the master agent *does* explicitly close any AgentX
> connections when it shuts down.  I suppose that could
> potentially trigger saving the configuration.

I think it does.  It's been a while since I worked on that code but I
don't think _I'm_ doing anything to trigger that save.  Maybe I am...

> ...
> > Well, I was asking if the subagent code set up a signal handler for
> > SIGHUP.  I guess I see now that that's unlikely.  
> 
> Not necessarily.
> If you're using the main Net-SNMP agent in a subagent role,
> then that will inherit the same behaviour as the master agent,
> so *would* include the usual SIGHUP handling.
>  I haven't looked at the stripped-down subagent framework,
> to see whether that does or not.  But it wouldn't be too
> difficult to add if necessary.
> 
> And if the subagent is mostly code you've written yourself, then
> it'd depend on whether you coded SIGHUP handling or not :-)

:-)  Yes, my subagent is mostly my code, a 3-thread program with the
subagent in one thread.

> > > Suck it and see.
> > 
> > Huh?
> 
> Sorry - must be a British expression.
> ...

I guessed that might be the case from your .uk address.


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to