File tree Expand file tree Collapse file tree 1 file changed +10
-13
lines changed
Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -775,21 +775,18 @@ async fn start_ldk() {
775775
776776#[ tokio:: main]
777777pub async fn main ( ) {
778- #[ cfg( not( target_os = "windows" ) ) ]
779- {
780- // Catch Ctrl-C with a dummy signal handler.
781- unsafe {
782- let mut new_action: libc:: sigaction = core:: mem:: zeroed ( ) ;
783- let mut old_action: libc:: sigaction = core:: mem:: zeroed ( ) ;
778+ // Catch Ctrl-C with a dummy signal handler.
779+ unsafe {
780+ let mut new_action: libc:: sigaction = core:: mem:: zeroed ( ) ;
781+ let mut old_action: libc:: sigaction = core:: mem:: zeroed ( ) ;
784782
785- new_action. sa_sigaction = libc:: SIG_IGN ;
783+ new_action. sa_sigaction = libc:: SIG_IGN ;
786784
787- libc:: sigaction (
788- libc:: SIGINT ,
789- & new_action as * const libc:: sigaction ,
790- & mut old_action as * mut libc:: sigaction ,
791- ) ;
792- }
785+ libc:: sigaction (
786+ libc:: SIGINT ,
787+ & new_action as * const libc:: sigaction ,
788+ & mut old_action as * mut libc:: sigaction ,
789+ ) ;
793790 }
794791
795792 start_ldk ( ) . await ;
You can’t perform that action at this time.
0 commit comments