Skip to content

Commit 4a62ef8

Browse files
committed
[Macros] Terminate macro plugin
Instead of expecting the plugin read `EOF` and exit, proactively terminate the plugin and `wait` to reap it.
1 parent 05948bc commit 4a62ef8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/AST/PluginRegistry.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ LoadedExecutablePlugin::PluginProcess::~PluginProcess() {
213213
#else
214214
close(input);
215215
close(output);
216+
kill(process.Pid, SIGTERM);
216217
#endif
217218

218219
// Set `SecondsToWait` non-zero so it waits for the timeout and kill it after

0 commit comments

Comments
 (0)