diff options
| author | Paul Buetow <paul.buetow@1und1.de> | 2013-06-17 18:35:39 +0200 |
|---|---|---|
| committer | Paul Buetow <paul.buetow@1und1.de> | 2013-06-17 18:35:39 +0200 |
| commit | 5ba932d830846f62ba58498b4bbfa01b3d13a44b (patch) | |
| tree | 7224c07b9f667fdcdf2cfce64a752cfb5f8f70a4 | |
| parent | a5af35143a3135571ae3185834f7b81b32df5d08 (diff) | |
Threads dont terminate abnormally anymore
| -rw-r--r-- | lib/Loadbars/Main.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Loadbars/Main.pm b/lib/Loadbars/Main.pm index 5adc7ea..8faa60f 100644 --- a/lib/Loadbars/Main.pm +++ b/lib/Loadbars/Main.pm @@ -196,7 +196,7 @@ REMOTECODE # Toggle CPUs $SIG{USR1} = sub { $sigusr1 = 1 }; - $SIG{TERM} = sub { $sigterm = 1 }; + $SIG{TERM} = sub { $sigterm = 1; threads->exit(); }; my $mode = 0; |
