Revert "do_fork(): RLIMIT_NPROC check"

This reverts commit 035e7913d8.
This commit is contained in:
Masamichi Takagi
2017-07-13 04:13:41 +09:00
parent 2d7890731e
commit 38961fca78
3 changed files with 0 additions and 28 deletions

View File

@@ -1956,10 +1956,6 @@ int main(int argc, char **argv)
n_threads = ncpu;
}
/* Quick fix for #900: Limit the number of clone() */
desc->rlimit[MCK_RLIMIT_NPROC].rlim_cur = n_threads;
desc->rlimit[MCK_RLIMIT_NPROC].rlim_max = n_threads;
/*
* XXX: keep thread_data ncpu sized despite that there are only
* n_threads worker threads in the pool so that signaling code