--- ucd-snmp-4.2.1/agent/snmpd.c.stderr Wed Apr 4 11:24:30 2001 +++ ucd-snmp-4.2.1/agent/snmpd.c Thu Jan 17 23:30:40 2002 @@ -583,6 +583,11 @@ } #endif + /* Honor selection of standard error output. */ + if (!stderr_log) { + snmp_disable_stderrlog(); + } + SOCK_STARTUP; init_agent("snmpd"); /* do what we need to do first. */ init_mib_modules(); @@ -642,10 +647,6 @@ #endif #endif - /* honor selection of standard error output */ - if (!stderr_log) - snmp_disable_stderrlog(); - /* we're up, log our version number */ snmp_log(LOG_INFO, "UCD-SNMP version %s\n", VersionInfo);