Fix flakes in runitd and popen_test

This commit is contained in:
Justine Tunney 2023-07-30 04:26:34 -07:00
parent 801224df67
commit 2ebc5781a1
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
18 changed files with 123 additions and 34 deletions

View file

@ -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.