summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-02-08 12:39:12 -0500
committerNick Mathewson <nickm@torproject.org>2021-02-08 12:39:12 -0500
commit0efc1e6372a38e5c50d7c1e556ce67cad0114ca7 (patch)
tree61bd9c12e9387f0c31f47e6493c98bd7571916e2 /src/test
parentd21ad8a78df8d134bd6acd512b95c8db2b5821ef (diff)
downloadtor-0efc1e6372a38e5c50d7c1e556ce67cad0114ca7.tar.gz
tor-0efc1e6372a38e5c50d7c1e556ce67cad0114ca7.zip
40274: Add a changes file and make the same change with FD_CLOEXEC
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index c4da911f83..39685d3443 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -5927,7 +5927,7 @@ static int
fd_is_cloexec(tor_socket_t fd)
{
int flags = fcntl(fd, F_GETFD, 0);
- return (flags & FD_CLOEXEC) == FD_CLOEXEC;
+ return (flags & FD_CLOEXEC) != 0;
}
#endif /* defined(FD_CLOEXEC) */