Tweak maxfilesperproc to force polling all the time.
This commit is contained in:
parent
ee813bcce9
commit
894e572092
@ -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
|
||||
|
@ -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)
|
||||
+ {
|
||||
|
Loading…
Reference in New Issue
Block a user