mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Make more fixes and improvements
This change attempts to fix some report build issues. It also builds upon development work described in previous changes.
This commit is contained in:
parent
9bfa6ec06e
commit
9d61e23c80
27 changed files with 980 additions and 902 deletions
|
@ -148,19 +148,6 @@ noasan int main(int argc, char *argv[]) {
|
|||
EmptySignalMask();
|
||||
ShowCrashReports();
|
||||
|
||||
// so the test runner can terminate unknown children without
|
||||
// accidentally killing parent processes
|
||||
if (!IsWindows() && weaken(fork)) {
|
||||
setpgrp();
|
||||
}
|
||||
|
||||
// prevent runaway tests from bombing the computer
|
||||
cpus = GetCpuCount();
|
||||
cpus = MAX(4, cpus);
|
||||
SetLimit(RLIMIT_NOFILE, 32, 128);
|
||||
SetLimit(RLIMIT_SIGPENDING, 16, 16384);
|
||||
SetLimit(RLIMIT_NPROC, cpus * 8, 2048);
|
||||
|
||||
// now get down to business
|
||||
g_testlib_shoulddebugbreak = IsDebuggerPresent(false);
|
||||
if (!IsWindows()) sys_getpid(); // make strace easier to read
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue