Skip to content

Commit 27a3d98

Browse files
authored
fix(server): poll timeout should be -1
1 parent 09a4516 commit 27a3d98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ int main(void) {
170170
}
171171

172172
// poll for active fds
173-
rv = poll(vector_data(poll_fds), vector_length(poll_fds), 0);
173+
rv = poll(vector_data(poll_fds), vector_length(poll_fds), -1);
174174
if (rv == -1) {
175175
perror("poll()");
176176
}

0 commit comments

Comments
 (0)