From 8cc3b291800a324a5febbf808641541923397418 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 29 Jan 2007 22:57:10 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=11997 --- checkin_notes | 11 ++++++++++- client/app_start.C | 10 ++++++++++ html/inc/prefs.inc | 8 +++++--- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/checkin_notes b/checkin_notes index 1dbc72b315..936dea71ec 100755 --- a/checkin_notes +++ b/checkin_notes @@ -1321,10 +1321,19 @@ David 29 Jan 2007 lib/ prefs.C -Rom 28 Jan 2007 +Rom 29 Jan 2007 - MGR: Update default BOINC skin. clientgui/res/skins/default/graphic *.xpm clientgui/res/templates/skins *.png + +David 29 Jan 2007 + - core client: on Unix, raise app stack size limit to max possible value + before exec'ing the program. + + client/ + app_start.C + html/inc/ + prefs.inc diff --git a/client/app_start.C b/client/app_start.C index 2ec7f88bb7..85adaba5ad 100644 --- a/client/app_start.C +++ b/client/app_start.C @@ -610,6 +610,16 @@ int ACTIVE_TASK::start(bool first_time) { _exit(retval); } + // set stack size limit to the max. + // Some BOINC apps have reported problems with exceeding + // small stack limits (e.g. 8 MB) + // and it seems like the best thing to raise it as high as possible + // + struct rlimit rlim; + getrlimit(RLIMIT_STACK, &rlim); + rlim.rlim_cur = rlim.rlim_max; + setrlimit(RLIMIT_STACK, &rlim); + // hook up stderr to a specially-named file // freopen(STDERR_FILE, "a", stderr); diff --git a/html/inc/prefs.inc b/html/inc/prefs.inc index dfbc9cc443..65b54ba564 100644 --- a/html/inc/prefs.inc +++ b/html/inc/prefs.inc @@ -756,7 +756,7 @@ function prefs_display_venue($prefs, $venue, $subset) { if ($project_has_beta) prefs_show_beta($x); prefs_show_project($x); } - row2("
", "Edit preferences | Remove"); + row2("
", "Edit preferences | Remove"); end_table(); echo "\n"; } else { @@ -795,7 +795,8 @@ function print_prefs_display_project($user, $columns=false) { prefs_show_privacy($user); venue_show($user); prefs_show_project($project_prefs, false); - row2("", "Edit ".PROJECT." preferences"); + $tokens = url_tokens($user->authenticator); + row2("", "Edit ".PROJECT." preferences"); end_table(); echo "\n"; prefs_display_venue($project_prefs, "home", "project"); @@ -835,7 +836,8 @@ function print_prefs_display_global($user, $columns=false) { echo ""; start_table("width=100% border=4"); prefs_show_global($global_prefs); - row2("
", "Edit preferences"); + $tokens = url_tokens($user->authenticator); + row2("
", "Edit preferences"); end_table(); echo "\n";