Skip to content

Commit

Permalink
Fix to prevent breaking spinners on user input similarly to what we d…
Browse files Browse the repository at this point in the history
…o in installer
  • Loading branch information
iliajie committed Sep 28, 2024
1 parent bfe7587 commit 23fe015
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Virtualmin/Config/Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ sub spinner {
# Fork and run spinner asynchronously, until signal received.
my $auto_start = sub {
my $ppid = $$;
system('stty -echo 1>/dev/null 2>&1');
my $pid = fork();
die("Failed to fork progress indicator.\n") unless defined $pid;

Expand Down Expand Up @@ -217,6 +218,7 @@ sub spinner {

my $auto_done = sub {
kill 'KILL', $schild;
system('stty echo 1>/dev/null 2>&1');
my $pid = wait();
&$done();
};
Expand Down

0 comments on commit 23fe015

Please sign in to comment.