summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2021-02-02 12:03:13 +0100
committerHelge Deller <deller@gmx.de>2021-02-02 12:20:13 +0100
commit8ea00c85cb02df411d8df45aa5e71ac89b6c4e37 (patch)
tree154443b6cea771bf8e7e2b83e5699a2c731da1e9 /README
parenta81581e6be5bc524429ebe513941006d00766e38 (diff)
downloadtor-8ea00c85cb02df411d8df45aa5e71ac89b6c4e37.tar.gz
tor-8ea00c85cb02df411d8df45aa5e71ac89b6c4e37.zip
Fix testcases regarding O_NONBLOCK on parisc/hppa architecture
On the parisc/hppa architecture, the O_NONBLOCK constant can be either 000200000 or 000200004, depending on the Linux kernel and glibc version on which the binary is running. Background of this can be read in this upstream Linux kernel patch: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=75ae04206a4d0e4f541c1d692b7febd1c0fdb814 The tor testcases fail because of this, because function fd_is_nonblocking() checks hard against the O_NONBLOCK value, while it's sufficient if it would only check if one of the bits is set. Fix this trivial issue by just comparing if the returned file descriptor flag and'ed with O_NONBLOCK is non-zero. As reference, a failing build on parisc/hppa can be seen here: https://buildd.debian.org/status/fetch.php?pkg=tor&arch=hppa&ver=0.4.4.6-1%2Bb1&stamp=1612225628&raw=0
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions