pkgsrc/net/nagios-base/patches/patch-base_nerd.c
bouyer 64ef26fdb7 Bug fix for workers busy-waiting for child completion: when read()ing a
non-bloking descriptor after a poll(), don't loop forever on EAGAIN
as poll() may return POLLIN for a descriptor which doesn't have data
to be read. Bump PKGREVISION.
While there add user-destdir support.
2016-02-09 10:12:53 +00:00

15 lines
533 B
C

$NetBSD: patch-base_nerd.c,v 1.2 2016/02/09 10:12:53 bouyer Exp $
64bit time_t workaround
--- base/nerd.c.orig 2016-02-07 21:13:59.000000000 +0100
+++ base/nerd.c 2016-02-07 21:14:15.000000000 +0100
@@ -337,7 +337,7 @@
} else
return 0;
- asprintf(&buf, "%lu|%s|M|%s/%s|%06X\n", cr->finish_time.tv_sec,
+ asprintf(&buf, "%lu|%s|M|%s/%s|%06X\n", (unsigned long)cr->finish_time.tv_sec,
check_result_source(cr), host_parent_path(h, '/'), name, color);
nerd_broadcast(chan_opath_checks_id, buf, strlen(buf));
free(buf);