This repository was archived by the owner on Mar 15, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -796,7 +796,7 @@ main(int argc, char *argv[])
796
796
return 0 ;
797
797
798
798
case 'v' :
799
- printf ("ssh-agent-wsl 2.3 \n" );
799
+ printf ("ssh-agent-wsl 2.4 \n" );
800
800
printf ("Based on weasel-pageant, copyright 2017, 2018 Valtteri Vuorikoski\n" );
801
801
printf ("Based on ssh-pageant, copyright 2009-2014 Josh Stone\n" );
802
802
printf ("License GPLv3+: GNU GPL version 3 or later"
@@ -871,13 +871,19 @@ main(int argc, char *argv[])
871
871
pid = atoi (pidenv );
872
872
if (kill (pid , SIGTERM ) < 0 )
873
873
err (1 , "kill(%d)" , pid );
874
+
875
+ #if !REAL_DAEMONIZE
876
+ // wait a bit here, so helper could properly die, otherwise WSL gets confused and starts consuming CPU...
877
+ sleep (1 );
878
+ #endif
879
+
874
880
output_unset_env (opt_sh );
875
881
if (!opt_quiet )
876
882
if (!strcasecmp ((const char * )program_invocation_short_name , "ssh-agent" )) {
877
883
// Make sure output is compatible with openssh
878
884
printf ("echo Agent pid %d killed;\n" , pid );
879
885
} else {
880
- printf ("echo ssh-agent-wsl pid killed%d ;\n" , pid );
886
+ printf ("echo ssh-agent-wsl pid %s killed ;\n" , pid );
881
887
}
882
888
return 0 ;
883
889
}
You can’t perform that action at this time.
0 commit comments