head 1.2; access; symbols pkgsrc-2017Q3:1.1.0.28 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.24 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.22 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.20 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.18 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.16 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.14 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.12 pkgsrc-2015Q4-base:1.1 pkgsrc-2015Q3:1.1.0.10 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.8 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.6 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.4 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.2 pkgsrc-2014Q3-base:1.1; locks; strict; comment @# @; 1.2 date 2017.10.27.17.48.29; author ryoon; state dead; branches; next 1.1; commitid 5JxkMLJMGh5nuIcA; 1.1 date 2014.07.27.05.36.07; author ryoon; state Exp; branches; next ; commitid oCJsXfV8QfqSCYJx; desc @@ 1.2 log @Remove thunderbird{24,31,38} @ text @$NetBSD: patch-zc,v 1.1 2014/07/27 05:36:07 ryoon Exp $ --- mail/app/nsMailApp.cpp.orig 2012-10-02 17:01:07.000000000 +0000 +++ mail/app/nsMailApp.cpp @@@@ -12,6 +12,26 @@@@ #include #include #endif +/* + * On netbsd-4, ulimit -n is 64 by default; too few for us. + */ +static void netbsd_fixrlimit(void) { + struct rlimit rlp; + if (getrlimit(RLIMIT_NOFILE, &rlp) == -1) { + fprintf(stderr, "warning: getrlimit failed\n"); + return; + } + if (rlp.rlim_cur >= 512) + return; + if (rlp.rlim_max < 512) { + fprintf(stderr, "warning: hard limit of 'ulimit -n' too low\n"); + rlp.rlim_cur = rlp.rlim_max; + } + else + rlp.rlim_cur = 512; + if (setrlimit(RLIMIT_NOFILE, &rlp) == -1) + fprintf(stderr, "warning: setrlimit failed\n"); + } #ifdef XP_MACOSX #include "MacQuirks.h" @@@@ -115,6 +135,7 @@@@ static int do_main(const char *exePath, int main(int argc, char* argv[]) { + netbsd_fixrlimit(); char exePath[MAXPATHLEN]; #ifdef XP_MACOSX @ 1.1 log @Import thunderbird24-24.7.0 as mail/thunderbird24. Mozilla Thunderbird is a redesign of the Mozilla mail component. The goal is to produce a cross platform stand alone mail application using the XUL user interface language. This version uses the gtk2 toolkit. This package tracks Thunderbird 24 branch. @ text @d1 1 a1 1 $NetBSD: patch-zc,v 1.5 2012/10/12 18:28:59 ryoon Exp $ @