mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 00:38:31 +00:00
Make system() and popen() thread safe
This commit is contained in:
parent
997ce29ddc
commit
f52f65b2e3
19 changed files with 135 additions and 31 deletions
|
@ -1770,11 +1770,11 @@ OnError:
|
|||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
ShowCrashReports();
|
||||
// ShowCrashReports();
|
||||
|
||||
if (IsLinux()) {
|
||||
Write(2, "Enabling TCP_FASTOPEN for server sockets...\n");
|
||||
system("sudo sh -c 'echo 2 >/proc/sys/net/ipv4/tcp_fastopen'");
|
||||
system("sudo sh -c 'echo 3 >/proc/sys/net/ipv4/tcp_fastopen'");
|
||||
}
|
||||
|
||||
// we don't have proper futexes on these platforms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue