upload comments

This commit is contained in:
Andy Gayton 2024-08-03 15:07:49 -04:00
parent 6ed02ea06a
commit 216df97453
3 changed files with 4 additions and 4 deletions

View File

@ -664,7 +664,7 @@ impl PluginInterface {
self.flush()
}
/// Send the plugin a ctrl-c signal.
/// Send the plugin a signal.
pub fn signal(&self, action: SignalAction) -> Result<(), ShellError> {
self.write(PluginInput::Signal(action))?;
self.flush()

View File

@ -310,7 +310,7 @@ impl RegisteredPlugin for PersistentPlugin {
// RAII guard that will be stored on the plugin.
let plugin = Arc::downgrade(&self);
handlers.register(Box::new(move |action| {
// write a Ctrl-C packet through the PluginInterface if the plugin is alive and
// write a signal packet through the PluginInterface if the plugin is alive and
// running
if let Some(plugin) = plugin.upgrade() {
if let Ok(mutable) = plugin.mutable.lock() {

View File

@ -525,8 +525,8 @@ impl EngineInterface {
self.state.writer.is_stdout()
}
/// Register a closure which will be called when the engine receives a Ctrl-C signal. Returns a
/// RAII guard that will keep the closure alive until it is dropped.
/// Register a closure which will be called when the engine receives an interrupt signal.
/// Returns a RAII guard that will keep the closure alive until it is dropped.
pub fn register_signal_handler(&self, handler: Handler) -> Result<HandlerGuard, ShellError> {
self.state.signal_handlers.register(handler)
}