diff options
| author | Runxi Yu <me@runxiyu.org> | 2025-06-08 16:53:23 +0800 |
|---|---|---|
| committer | Runxi Yu <me@runxiyu.org> | 2025-06-08 16:53:23 +0800 |
| commit | 699f0d74fed4bbdd8cb23b6d05bff05aafc78e05 (patch) | |
| tree | ad7711a4616859f5ac41415178f1d9285caf9e61 | |
| parent | Update dependencies (diff) | |
| download | forge-0.1.50.tar.gz forge-0.1.50.tar.zst forge-0.1.50.zip | |
git2d: Warn and continue instead of quitting when unable to acceptv0.1.50
I guess to temporarily mitigate
git2d: accept: No file descriptors available
before I really figure out what's going on.
| -rw-r--r-- | git2d/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/git2d/main.c b/git2d/main.c index 5dacb61..65a4309 100644 --- a/git2d/main.c +++ b/git2d/main.c @@ -50,8 +50,10 @@ main(int argc, char **argv) err(1, "malloc"); *conn = accept(sock, 0, 0); - if (*conn == -1) - err(1, "accept"); + if (*conn == -1) { + warn("accept"); + continue; + } pthread_t thread; |
