From 894e5720928110cb00ab67d26f8c6b500dca883c Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Sun, 6 Dec 2009 13:38:54 +0000 Subject: [PATCH] Tweak maxfilesperproc to force polling all the time. --- sysutils/gamin/Makefile | 4 ++-- sysutils/gamin/patches/patch-server_gam_kqueue_c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sysutils/gamin/Makefile b/sysutils/gamin/Makefile index b4f688956e9..79dd0f45e04 100755 --- a/sysutils/gamin/Makefile +++ b/sysutils/gamin/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2009/12/05 22:55:36 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.4 2009/12/06 13:38:54 ajacoutot Exp $ COMMENT-main= file and directory monitoring system COMMENT-server= gamin file monitoring server @@ -8,7 +8,7 @@ GNOME_PROJECT= gamin GNOME_VERSION= 0.1.10 PKGNAME-main= libgamin-${GNOME_VERSION} -PKGNAME-server= ${DISTNAME}p1 +PKGNAME-server= ${DISTNAME}p2 PKGNAME-python= py-gamin-${GNOME_VERSION} SHARED_LIBS += gamin-1 0.0 # .1.10 diff --git a/sysutils/gamin/patches/patch-server_gam_kqueue_c b/sysutils/gamin/patches/patch-server_gam_kqueue_c index 357bdf12b96..a4521509126 100644 --- a/sysutils/gamin/patches/patch-server_gam_kqueue_c +++ b/sysutils/gamin/patches/patch-server_gam_kqueue_c @@ -1,4 +1,4 @@ -$OpenBSD: patch-server_gam_kqueue_c,v 1.3 2009/12/05 22:55:36 ajacoutot Exp $ +$OpenBSD: patch-server_gam_kqueue_c,v 1.4 2009/12/06 13:38:54 ajacoutot Exp $ From FreeBSD: Make sure that excluded paths do not get opened (but rather they will be @@ -165,7 +165,7 @@ to get a correct value. ? maxfilesperproc - CFG_SELF_FILE_RESERVE : 0; +#else -+ maxfilesperproc = 128; ++ maxfilesperproc = 0; /* XXX 128 */ + struct rlimit rlp; + if (getrlimit(RLIMIT_NOFILE, &rlp) == 0) + {