Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3dace96e authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "O_CLOEXEC != FD_CLOEXEC." am: e976dc12 am: e47b0321 am: 27cf90e7

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1990641

Change-Id: I490f094a2467e53fcbda9088ef134ca6a7db6392
parents 5fde9fe9 27cf90e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ PosixAsyncSocket::PosixAsyncSocket(int fd, AsyncManager* am)
  fcntl(fd, F_SETFL, flags | O_NONBLOCK);

  flags = fcntl(fd, F_GETFD);
  fcntl(fd, F_SETFD, flags | O_CLOEXEC);
  fcntl(fd, F_SETFD, flags | FD_CLOEXEC);

#ifdef SO_NOSIGPIPE
  // Disable SIGPIPE generation on Darwin.