summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonb <simonb>2003-05-19 02:58:19 +0000
committersimonb <simonb>2003-05-19 02:58:19 +0000
commitbc98e36c97ceb2954847c65f9b67485ec41d9d87 (patch)
tree3b0f7275ee09316bd520d67a96d002a66d043b60
parent9cd7878cd519b0f1311104ec5e7cd1a62be2bb33 (diff)
downloadpkgsrc-bc98e36c97ceb2954847c65f9b67485ec41d9d87.tar.gz
Suppress annoying ulimit error by setting open file descriptor limit to
the hard limit and not some arbitary large number.
-rwxr-xr-xmisc/openoffice-linux/files/soffice4
-rwxr-xr-xmisc/openoffice/files/soffice4
2 files changed, 4 insertions, 4 deletions
diff --git a/misc/openoffice-linux/files/soffice b/misc/openoffice-linux/files/soffice
index 64c679bc38f..7ddddbfbd49 100755
--- a/misc/openoffice-linux/files/soffice
+++ b/misc/openoffice-linux/files/soffice
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: soffice,v 1.3 2003/04/26 15:44:17 mrauch Exp $
+# $NetBSD: soffice,v 1.4 2003/05/19 02:58:19 simonb Exp $
#
SOINST=@@PREFIX@@/OpenOffice.org1.0.3
[ "$SOFFICE" = "" ] && SOFFICE=$HOME/OpenOffice.org1.0.3
@@ -43,6 +43,6 @@ fi
# We've got a large number of shared libraries and other single files which
# have to be open for normal operation
-ulimit -n 1024
+ulimit -n `ulimit -n -H`
exec ${SOFFICE}/soffice "$@"
diff --git a/misc/openoffice/files/soffice b/misc/openoffice/files/soffice
index 4774e54dc99..3bdfcdb0c24 100755
--- a/misc/openoffice/files/soffice
+++ b/misc/openoffice/files/soffice
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: soffice,v 1.1.1.1 2002/02/13 18:10:10 mrauch Exp $
+# $NetBSD: soffice,v 1.2 2003/05/19 02:58:19 simonb Exp $
#
SOINST=@@PREFIX@@/OpenOffice.org641
[ "$SOFFICE" = "" ] && SOFFICE=$HOME/OpenOffice.org641
@@ -32,6 +32,6 @@ fi
# We've got a large number of shared libraries and other single files which
# have to be open for normal operation
-ulimit -n 1024
+ulimit -n `ulimit -n -H`
exec ${SOFFICE}/soffice $*