mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 02:38:31 +00:00
Fix flakes in runitd and popen_test
This commit is contained in:
parent
801224df67
commit
2ebc5781a1
18 changed files with 123 additions and 34 deletions
|
@ -40,10 +40,10 @@ static bool setsockopt_polyfill(int *optname) {
|
|||
/**
|
||||
* Modifies socket settings.
|
||||
*
|
||||
* This function is the ultimate rabbit hole. Basic usage:
|
||||
* Basic usage:
|
||||
*
|
||||
* int yes = 1;
|
||||
* setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &yes, sizeof(yes));
|
||||
* int yes = 1;
|
||||
* setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes));
|
||||
*
|
||||
* @param level can be SOL_SOCKET, SOL_IP, SOL_TCP, etc.
|
||||
* @param optname can be SO_{REUSE{PORT,ADDR},KEEPALIVE,etc.} etc.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue