mirror of
https://github.com/jmcorgan/fips.git
synced 2026-07-22 07:48:26 +00:00
Remove --wait mode from fips binary
No longer needed since lldb-gdbserver-start.sh launches the binary directly via gdbserver mode.
This commit is contained in:
@@ -6,13 +6,8 @@ use fips::{Config, Node};
|
||||
use tracing::{error, info, warn, Level};
|
||||
use tracing_subscriber::{fmt, EnvFilter};
|
||||
|
||||
fn parse_args() -> bool {
|
||||
std::env::args().any(|arg| arg == "--wait" || arg == "-w")
|
||||
}
|
||||
|
||||
#[tokio::main(flavor = "current_thread")]
|
||||
async fn main() {
|
||||
let wait_mode = parse_args();
|
||||
// Initialize logging
|
||||
let filter = EnvFilter::builder()
|
||||
.with_default_directive(Level::INFO.into())
|
||||
@@ -122,12 +117,5 @@ async fn main() {
|
||||
info!("FIPS initialized successfully");
|
||||
|
||||
// TODO: Start event loop, transports, etc.
|
||||
if wait_mode {
|
||||
info!("Running in wait mode (--wait). Press Ctrl+C to exit.");
|
||||
info!("Attach debugger with: sudo ./scripts/lldb-attach-fips.sh");
|
||||
// Block forever (until signal)
|
||||
std::thread::park();
|
||||
} else {
|
||||
info!("No transports configured, nothing to do");
|
||||
}
|
||||
info!("No transports configured, nothing to do");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user