Re: Gracefully restart an agent

"Peter Marinec" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Is there any reason that "restart_hook" uses the signal function,
rather than snmp_alarm_register?

Using the later would make it not dependant on having SIGALRM (win32
doesn't support this in its signaling)...

the only other change would be to #include <process.h> and #if WIN32
run _execv rather than execv

I tried it and it seems to be working... any thoughts on the signaling though?

On 6/16/07, Thomas Anders <[email protected]> wrote:
> Peter Marinec wrote:
> > I looked further into the versionRestartAgent, and found that the hook
> > it uses to do the restart isn't run on a Win32 platform (without
> > cygwin)...
>
> If you can you propose a mechanism that works on Win32, please submit it
> to http://www.net-snmp.org/patches .
>
>
> +Thomas
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.