ports/www/nspluginwrapper/files/patch-ulimit
Boris Samorodov b1f4d76293 Limit the stack size for plugins. Linux glibc threading behaves
slightly differently with a smaller stack size and the Flash plugins
rely on this behaviour.

Suggested by:	dchagin
Patch by:	nox
Discussed at:	freebsd-emulation
Reminded by:	Tijl Coosemans <tijl@ulyssis.org>
2009-08-06 15:59:17 +00:00

7 lines
192 B
Text

Index: usr/lib/nspluginwrapper/i386/linux/npviewer
@@ -1,4 +1,5 @@
#!/bin/sh
TARGET_OS=linux
TARGET_ARCH=i386
+ulimit -s 32768 2>/dev/null
. /usr/local/lib/nspluginwrapper/noarch/npviewer