Skip to content

Commit ec077c0

Browse files
committed
[Macros] Ensure reaping executable plugin process
rdar://126489446 (cherry picked from commit e10ddb3)
1 parent 797765a commit ec077c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/PluginRegistry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ LoadedExecutablePlugin::PluginProcess::~PluginProcess() {
172172
#if defined(_WIN32)
173173
_close(input);
174174
_close(output);
175-
CloseHandle(process.Process);
176175
#else
177176
close(input);
178177
close(output);
179178
#endif
179+
llvm::sys::Wait(process, /*SecondsToWait=*/0);
180180
}
181181

182182
LoadedExecutablePlugin::~LoadedExecutablePlugin() {

0 commit comments

Comments
 (0)