*** empty log message ***

svn path=/trunk/boinc/; revision=12005
This commit is contained in:
David Anderson 2007-01-30 18:31:07 +00:00
parent ff91c8450f
commit bca1ed34f9
2 changed files with 11 additions and 1 deletions

View File

@ -1391,3 +1391,9 @@ David 30 Jan 2007
tools/
backend_lib.C,h
create_work.C
David 30 Jan 2007
- Unix: when increasing stack size for apps, don't exceed 500 MB
client/
app_start.C

View File

@ -617,7 +617,11 @@ int ACTIVE_TASK::start(bool first_time) {
//
struct rlimit rlim;
getrlimit(RLIMIT_STACK, &rlim);
rlim.rlim_cur = rlim.rlim_max;
if (rlim.rlim_max == RLIM_INFINITY || rlim.rlim_max > 500000000) {
rlim.rlim_cur = 500000000; // 500 MB max
} else {
rlim.rlim_cur = rlim.rlim_max;
}
setrlimit(RLIMIT_STACK, &rlim);
// hook up stderr to a specially-named file