From 0dfb9c3e08357a1f3dcef446c7a77572094e0491 Mon Sep 17 00:00:00 2001 From: Rui Loura Date: Mon, 9 Mar 2020 12:01:38 -0400 Subject: [PATCH] fix comment and update Cargo.lock --- manager/src/config.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/manager/src/config.rs b/manager/src/config.rs index 408e759a..57471343 100644 --- a/manager/src/config.rs +++ b/manager/src/config.rs @@ -119,6 +119,11 @@ impl Config { .expect("Start config updater") } + // Run a thread that listens for the SIGUSR1 signal which config-agent + // should be sending us via SMF when the config file is updated. When a + // signal is trapped it simply sends an empty message to the updater thread + // which handles updating the configuration state in memory. We don't want + // to block or take any locks here because the signal is asynchronous. fn config_update_signal_handler( config_update_tx: crossbeam_channel::Sender<()>, update_barrier: Arc, @@ -358,11 +363,6 @@ fn job_create_subcommand_handler( Ok(SubCommand::DoJob(Box::new(job))) } -// Run a thread that listens for the SIGUSR1 signal which config-agent should -// be sending us via SMF when the config file is updated. When a signal is -// trapped it simply sends an empty message to the updater thread which -// handles updating the configuration state in memory. We don't want to -// block or take any locks here because the signal is asynchronous. fn _config_update_signal_handler( config_update_tx: crossbeam_channel::Sender<()>, update_barrier: Arc,