mirror of https://github.com/mikaku/Monitorix.git
Merge pull request #231 from duc996/fix_blocked_main_loop
Fix bug fixes #230 where the main loop sleeps forever.
This commit is contained in:
commit
638ca91bdd
|
@ -737,9 +737,8 @@ logger("Ok, ready.");
|
||||||
|
|
||||||
# main loop
|
# main loop
|
||||||
while(1) {
|
while(1) {
|
||||||
local $SIG{'ALRM'} = sub { };
|
|
||||||
alarm(1);
|
select undef, undef, undef, 1.0;
|
||||||
pause();
|
|
||||||
|
|
||||||
my ($sec, $min, $hour, $mday, $mon, undef, $wday) = localtime(time);
|
my ($sec, $min, $hour, $mday, $mon, undef, $wday) = localtime(time);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue