summaryrefslogtreecommitdiff
path: root/user/sntpd/select.patch
blob: 00121d80bbd5ee60f3f4c40726b316bffb5f6989 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
select(3) does not modify its timeout in musl, as permitted by POSIX
--- sntpd-7e372536855687f0af3c7ddde5fcb965b93d5d1e/src/sntpd.c
+++ sntpd-7e372536855687f0af3c7ddde5fcb965b93d5d1e/src/sntpd.c
@@ -686,7 +686,7 @@ static void primary_loop(int usd, struct ntp_control *ntpc)
 					ERR(errno, "Failed select()");
 				continue;
 			}
-			if (to.tv_sec == 0) {
+			if (1) {
 				if (probes_sent >= ntpc->probe_count && ntpc->probe_count != 0)
 					break;