diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-02-08 12:39:12 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2021-02-08 12:39:12 -0500 |
commit | 0efc1e6372a38e5c50d7c1e556ce67cad0114ca7 (patch) | |
tree | 61bd9c12e9387f0c31f47e6493c98bd7571916e2 /src/test/test_util.c | |
parent | d21ad8a78df8d134bd6acd512b95c8db2b5821ef (diff) | |
download | tor-0efc1e6372a38e5c50d7c1e556ce67cad0114ca7.tar.gz tor-0efc1e6372a38e5c50d7c1e556ce67cad0114ca7.zip |
40274: Add a changes file and make the same change with FD_CLOEXEC
Diffstat (limited to 'src/test/test_util.c')
-rw-r--r-- | src/test/test_util.c | 2 |
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) */ |