need to set pfd.events, not revents... d'oh. Tamas TEVESZ <ice@extreme.hu>
This commit is contained in:
parent
efed97afd6
commit
d461e323ef
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.34 2009/01/09 18:24:35 henning Exp $
|
||||
# $OpenBSD: Makefile,v 1.35 2009/01/10 16:16:21 henning Exp $
|
||||
|
||||
COMMENT-main= host and service monitor
|
||||
COMMENT-web= cgis and webpages for nagios
|
||||
|
||||
V= 3.0.6
|
||||
DISTNAME= nagios-${V}
|
||||
PKGNAME-main= nagios-${V}p0
|
||||
PKGNAME-main= nagios-${V}p1
|
||||
PKGNAME-web= nagios-web-${V}
|
||||
CATEGORIES= net
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-base_utils_c,v 1.5 2009/01/09 18:24:35 henning Exp $
|
||||
--- base/utils.c.orig Fri Jan 9 14:20:10 2009
|
||||
+++ base/utils.c Fri Jan 9 14:28:24 2009
|
||||
$OpenBSD: patch-base_utils_c,v 1.6 2009/01/10 16:16:21 henning Exp $
|
||||
--- base/utils.c.orig Sun Nov 30 18:22:58 2008
|
||||
+++ base/utils.c Sat Jan 10 17:14:26 2009
|
||||
@@ -610,8 +610,16 @@ int my_system(char *cmd,int timeout,int *early_timeout
|
||||
/* handle errors */
|
||||
if(bytes_read==-1){
|
||||
@ -12,7 +12,7 @@ $OpenBSD: patch-base_utils_c,v 1.5 2009/01/09 18:24:35 henning Exp $
|
||||
+ struct pollfd pfd;
|
||||
+
|
||||
+ pfd.fd = fd[0];
|
||||
+ pfd.revents = POLLIN;
|
||||
+ pfd.events = POLLIN;
|
||||
+ poll(&pfd, 1, -1);
|
||||
+ continue;
|
||||
+ }
|
||||
|
Loading…
Reference in New Issue
Block a user