Try to set the number of open files to the desired value before warning
about openfiles-max. ok robert@
This commit is contained in:
parent
a87194c4ac
commit
9c5121f96b
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.58 2011/06/15 19:41:02 robert Exp $
|
||||
# $OpenBSD: Makefile,v 1.59 2011/06/17 04:25:06 canacar Exp $
|
||||
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
|
||||
@ -7,7 +7,7 @@ COMMENT= Chromium browser
|
||||
V= 12.0.742.100
|
||||
DISTNAME= chromium-${V}
|
||||
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
|
||||
CATEGORIES= www
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: chrome,v 1.5 2011/05/19 11:52:07 robert Exp $
|
||||
# $OpenBSD: chrome,v 1.6 2011/06/17 04:25:06 canacar Exp $
|
||||
|
||||
PROGDIR=TRUEPREFIX/chrome
|
||||
FDS=400
|
||||
|
||||
[ `ulimit -Sn` -lt ${FDS} ] || ulimit -Sn ${FDS}
|
||||
[ `ulimit -Sn` -lt ${FDS} ] && ulimit -n ${FDS}
|
||||
if [ `ulimit -Sn` -lt ${FDS} ]; then
|
||||
LMSG="${LMSG}- increase openfiles-max to at least ${FDS}.\n"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user