--- a/agent/mibgroup/ucd-snmp/pass_persist.c+++ b/agent/mibgroup/ucd-snmp/pass_persist.c@@ -722,11 +722,13 @@ close_persist_pipe(int iindex)
#endif
if (persist_pipes[iindex].pid != NETSNMP_NO_SUCH_PROCESS) {
+#ifdef SIGKILL
/*
* kill the child, in case we got an error and the child is not
* cooperating. Ignore the return code.
*/
(void)kill(persist_pipes[iindex].pid, SIGKILL);
+#endif
#if HAVE_SYS_WAIT_H
waitpid(persist_pipes[iindex].pid, NULL, 0);
#endif
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Attaching net-snmp-config.h
Does this fix your build:
Fix identified by rstory:
15:52 < rstory-work> try wrapping the kill in pass_persist.c in a #ifdef HAVE_SIGNAL
16:00 < jeffg> rstory-work, w00t! that change alone unhorked it.
git patch attached.
@Bill, it probably does -- seems you and rstory arrived independently at equivalent suggestions :)
Thanks!
BTW the patch above is against a branch cut from V5-7-patches.
Pushed your fix db1f217541e00b53813d94f6befb9a42d4838e95 to 5-7-patches. Thanks!
patch applied, closing...