Mercurial
comparison seobeo/os/s_linux_edge.c @ 165:3e0e27684e6b
[Gara] Remove unwanted bazel tutorial.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sat, 13 Dec 2025 14:34:51 -0800 |
| parents | 84672efec192 |
| children |
comparison
equal
deleted
inserted
replaced
| 49:2b11e0449042 | 165:3e0e27684e6b |
|---|---|
| 106 | 106 |
| 107 Dowa_PHashMap handles = Dowa_HashMap_Create(1024); | 107 Dowa_PHashMap handles = Dowa_HashMap_Create(1024); |
| 108 snprintf(keybuf, sizeof(keybuf), "%d", p_handle_server->socket); | 108 snprintf(keybuf, sizeof(keybuf), "%d", p_handle_server->socket); |
| 109 Dowa_HashMap_Push_Value(handles, keybuf, p_handle_server, sizeof(p_handle_server)); | 109 Dowa_HashMap_Push_Value(handles, keybuf, p_handle_server, sizeof(p_handle_server)); |
| 110 | 110 |
| 111 while (1) { | 111 while (1) |
| 112 { | |
| 112 int n = epoll_wait(epfd, events, MAX_EVENTS, -1); | 113 int n = epoll_wait(epfd, events, MAX_EVENTS, -1); |
| 113 if (n < 0) | 114 if (n < 0) |
| 114 { | 115 { |
| 115 if (errno == EINTR) continue; | 116 if (errno == EINTR) continue; |
| 116 perror("epoll_wait"); | 117 perror("epoll_wait"); |