Skip to content

Commit 1224ebf

Browse files
committed
Revert "[Macros] Mitigate plugin process 'wait' failure"
This reverts commit be25ea2.
1 parent 7c3ef54 commit 1224ebf

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
@@ -219,10 +219,8 @@ LoadedExecutablePlugin::PluginProcess::~PluginProcess() {
219219
// that. Usually when the pipe is closed above, the plugin detects the EOF in
220220
// the stdin and exits immediately, so this usually doesn't wait for the
221221
// timeout. Note that we can't use '0' because it performs a non-blocking
222-
// wait, which make the plugin a zombie if it hasn't exited. We don't use
223-
// a small number like '1' because the timeout alarm(3) can fire before the
224-
// wait4(2).
225-
llvm::sys::Wait(process, /*SecondsToWait=*/10);
222+
// wait, which make the plugin a zombie if it hasn't exited.
223+
llvm::sys::Wait(process, /*SecondsToWait=*/1);
226224
}
227225

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

0 commit comments

Comments
 (0)