forked from 1b-agent/opencadstudio-upstream
Fix V2/V3 messaging ABI-break
This commit is contained in:
1 parent
29c41a4041
commit
883e703b02
7 files changed
+179
-38
No files matched your search
@@ -193,6 +193,19 @@ impl PluginManager {
|
||||
}
|
||||
}
|
||||
|
||||
/// Drain any plugin stdout/stderr lines that have accumulated across all
|
||||
/// loaded plugins. Errors are logged; this is best-effort.
|
||||
pub fn drain_io(&self) -> Vec<crate::process::PluginIoLine> {
|
||||
let mut out = Vec::new();
|
||||
for p in &self.plugins {
|
||||
if !p.process.is_alive() {
|
||||
continue;
|
||||
}
|
||||
out.extend(p.process.drain_io());
|
||||
}
|
||||
out
|
||||
}
|
||||
|
||||
/// Begin asynchronous shutdown of every plugin process.
|
||||
///
|
||||
/// Kills every child synchronously on the calling thread and moves the
|
||||
|
||||
Reference in new issue
Block a user