From ba19b1ea6de3246f0f3aa482d9d61f96441bac56 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 10 Jun 2020 16:05:16 +0100 Subject: [PATCH] bin/disorder-notify: Stop reading when we reach end-of-file. Just a stupid bug. --- bin/disorder-notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/disorder-notify b/bin/disorder-notify index 4e0b354..49e83f0 100755 --- a/bin/disorder-notify +++ b/bin/disorder-notify @@ -239,7 +239,7 @@ sub watch_and_notify0 ($) { eval { $n = sysread $sk_log, $b, 4096; }; if ($@ && $@->errno == EAGAIN) { last READ; } elsif ($@) { $loss = "error from read: " . $@->errno; last WATCH; } - elsif (!$n) { close $sk_log; $sk_log = undef; } + elsif (!$n) { close $sk_log; $sk_log = undef; last READ; } else { $buffer .= $b; } } -- 2.11.0