summaryrefslogtreecommitdiff
path: root/user/sntpd/select.patch
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-10-04 17:53:01 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-10-04 17:53:01 +0000
commit72faf6a61ea307660f79d43519eadb952d853db5 (patch)
treee313bdfc5bba2d323c78aaa26f12d77a2f95929c /user/sntpd/select.patch
parentec3ecfe45bafdfb129be77bc498d6e4c5116c0ff (diff)
parent878c4ffc7e6837e63d308f18348a52584f323f4c (diff)
downloadpackages-72faf6a61ea307660f79d43519eadb952d853db5.tar.gz
packages-72faf6a61ea307660f79d43519eadb952d853db5.tar.bz2
packages-72faf6a61ea307660f79d43519eadb952d853db5.tar.xz
packages-72faf6a61ea307660f79d43519eadb952d853db5.zip
Merge branch 'new-packages' into 'master'
user/sntpd: New package See merge request adelie/packages!353
Diffstat (limited to 'user/sntpd/select.patch')
-rw-r--r--user/sntpd/select.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/user/sntpd/select.patch b/user/sntpd/select.patch
new file mode 100644
index 000000000..00121d80b
--- /dev/null
+++ b/user/sntpd/select.patch
@@ -0,0 +1,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;
+