pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/seamonkey/files - Raise the process' limit for ope...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/10ea95a4b82d
branches:  trunk
changeset: 557742:10ea95a4b82d
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Tue Apr 21 15:16:39 2009 +0000

description:
- Raise the process' limit for open file descriptors to 256.
  This avoids font rendering problems with firefox3 on NetBSD 4.x.
- Remove setting of LD_LIBRARY_PATH in the startup script. The run path
  is set in the binaries, and that's where problems should be fixed.

diffstat:

 www/seamonkey/files/mozilla-ELF.in |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 5885f2a57368 -r 10ea95a4b82d www/seamonkey/files/mozilla-ELF.in
--- a/www/seamonkey/files/mozilla-ELF.in        Tue Apr 21 15:15:15 2009 +0000
+++ b/www/seamonkey/files/mozilla-ELF.in        Tue Apr 21 15:16:39 2009 +0000
@@ -1,6 +1,11 @@
 #!/bin/sh
+if [ `ulimit -n` -lt 256 ]; then
+       if [ `ulimit -H -n` -lt 256 ]; then
+               ulimit -n `ulimit -H -n`
+       else
+               ulimit -n 256
+       fi
+fi
 MOZILLA_FIVE_HOME=@PREFIX@/lib/@MOZILLA@
 export MOZILLA_FIVE_HOME
-LD_LIBRARY_PATH=@PREFIX@/lib/@MOZILLA@:@PREFIX@/lib:${LD_LIBRARY_PATH}
-export LD_LIBRARY_PATH
 exec @PREFIX@/lib/@MOZILLA@/@MOZILLA_BIN@ "$@"



Home | Main Index | Thread Index | Old Index