mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-23 04:06:20 +00:00
Add method to sc-cli to reset the SIGPIPE signal handler (#5447)
The signal handler will be reset to the default system one. This means the program will be exited instead of panicking. This is required to support piping in the console.
This commit is contained in:
1 parent
e8835d64a1
commit
ab0366a076
4 files changed
+24
No files matched your search
@@ -25,6 +25,8 @@ where
|
||||
I: Iterator<Item = T>,
|
||||
T: Into<std::ffi::OsString> + Clone,
|
||||
{
|
||||
sc_cli::reset_signal_pipe_handler()?;
|
||||
|
||||
let args: Vec<_> = args.collect();
|
||||
let opt = sc_cli::from_iter::<Cli, _>(args.clone(), &version);
|
||||
|
||||
|
||||
Reference in new issue
Block a user