mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
40274: Add a changes file and make the same change with FD_CLOEXEC
This commit is contained in:
parent
d21ad8a78d
commit
0efc1e6372
4
changes/ticket40274
Normal file
4
changes/ticket40274
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor bugfixes (compatibility):
|
||||
- Fix a failure in the test cases when running on the hppa architecture,
|
||||
along with a related test that might fail on other architectures in the
|
||||
future. Fixes bug 40274; bugfix on 0.2.5.1-alpha.
|
@ -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) */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user