Commit 38da44cb authored by Steven Murdoch's avatar Steven Murdoch Committed by Nick Mathewson
Browse files

Fix compile error on MacOS X (and other platforms without O_CLOEXEC)

parent b4f56dd4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@ tor_open_cloexec(const char *path, int flags, unsigned mode)
  int fd = open(path, flags, mode);
#ifdef FD_CLOEXEC
  if (fd >= 0)
        fcntl(s, F_SETFD, FD_CLOEXEC);
        fcntl(fd, F_SETFD, FD_CLOEXEC);
#endif
  return fd;
#endif