Skip to content

Commit f57e2d7

Browse files
authored
Merge pull request #81547 from rintaro/macros-wait-1
[Macros] Revert the 'wait' timeout update back to 1 second
2 parents e795eb0 + 8474d27 commit f57e2d7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/AST/PluginRegistry.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,8 @@ LoadedExecutablePlugin::PluginProcess::~PluginProcess() {
220220
// that. Usually when the pipe is closed above, the plugin detects the EOF in
221221
// the stdin and exits immediately, so this usually doesn't wait for the
222222
// timeout. Note that we can't use '0' because it performs a non-blocking
223-
// wait, which make the plugin a zombie if it hasn't exited. We don't use
224-
// a small number like '1' because the timeout alarm(3) can fire before the
225-
// wait4(2).
226-
llvm::sys::Wait(process, /*SecondsToWait=*/10);
223+
// wait, which make the plugin a zombie if it hasn't exited.
224+
llvm::sys::Wait(process, /*SecondsToWait=*/1);
227225
}
228226

229227
ssize_t LoadedExecutablePlugin::PluginProcess::read(void *buf,

0 commit comments

Comments
 (0)