| Index: mojo/edk/embedder/platform_handle_utils_posix.cc
|
| diff --git a/mojo/edk/embedder/platform_handle_utils_posix.cc b/mojo/edk/embedder/platform_handle_utils_posix.cc
|
| index fc2a0dbe09ae7ed75a258379979bcf03fc8a5428..5604f96bf14631fea0ae820a14d608782ce6c99b 100644
|
| --- a/mojo/edk/embedder/platform_handle_utils_posix.cc
|
| +++ b/mojo/edk/embedder/platform_handle_utils_posix.cc
|
| @@ -15,7 +15,9 @@ ScopedPlatformHandle DuplicatePlatformHandle(PlatformHandle platform_handle) {
|
| DCHECK(platform_handle.is_valid());
|
| // Note that |dup()| returns -1 on error (which is exactly the value we use
|
| // for invalid |PlatformHandle| FDs).
|
| - return ScopedPlatformHandle(PlatformHandle(dup(platform_handle.handle)));
|
| + PlatformHandle duped(dup(platform_handle.handle));
|
| + duped.needs_connection = platform_handle.needs_connection;
|
| + return ScopedPlatformHandle(duped);
|
| }
|
|
|
| } // namespace edk
|
|
|