21442284 snmptrapd logging dependent on -f flag s11u2-sru
authorLijo George<lijo.x.george@oracle.com>
Wed, 22 Jul 2015 02:28:56 -0700
branchs11u2-sru
changeset 4685 da890a7f6af0
parent 4673 7ca7277ea064
child 4686 27b24e7a4997
21442284 snmptrapd logging dependent on -f flag
components/net-snmp/patches/054.21442284.snmptrapd.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/net-snmp/patches/054.21442284.snmptrapd.patch	Wed Jul 22 02:28:56 2015 -0700
@@ -0,0 +1,17 @@
+Patch developed inhouse and has been accepted by the community.
+Details can be found at
+https://sourceforge.net/p/net-snmp/bugs/2654/
+The community patch differs slightly from this as it needs to be
+generic for all OSes, hence they have included an extra check for the availability
+of the forkall function. 
+--- net-snmp-5.4.1.old/apps/snmptrapd.c	2007-06-08 03:44:37.000000000 -0700
++++ net-snmp-5.4.1/apps/snmptrapd.c	2015-05-20 05:12:11.512063848 -0700
[email protected]@ -1237,7 +1237,7 @@
+     if (dofork && netsnmp_running) {
+         int             fd;
+ 
+-        switch (fork()) {
++        switch (forkall()) {
+         case -1:
+             fprintf(stderr, "bad fork - %s\n", strerror(errno));
+             _exit(1);