Skip to content

Commit 894bc81

Browse files
committed
fixup
1 parent deb14a9 commit 894bc81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/source/Host/windows/PipeWindows.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ Status PipeWindows::OpenNamedPipe(llvm::StringRef name,
166166

167167
assert(is_read ? !CanRead() : !CanWrite());
168168

169-
SECURITY_ATTRIBUTES attributes{sizeof(SECURITY_ATTRIBUTES), 0,
170-
child_process_inherit ? TRUE : FALSE};
169+
// We always create inheritable handles, but we won't pass them to a child
170+
// process unless explicitly requested (cf. ProcessLauncherWindows.cpp).
171+
SECURITY_ATTRIBUTES attributes{sizeof(SECURITY_ATTRIBUTES), 0, TRUE};
171172

172173
std::string pipe_path = g_pipe_name_prefix.str();
173174
pipe_path.append(name.str());

0 commit comments

Comments
 (0)