From eb37f0151f49d80117b0e215b1524e71e9c85dde Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 23 Nov 2020 15:53:39 +0000 Subject: minidentd QoL fix --- src/minidentd/minidentd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/minidentd/minidentd.c') diff --git a/src/minidentd/minidentd.c b/src/minidentd/minidentd.c index 898de28..a5115b7 100644 --- a/src/minidentd/minidentd.c +++ b/src/minidentd/minidentd.c @@ -5,6 +5,7 @@ #include #include #include + #include #include #include @@ -18,6 +19,7 @@ #include #include #include + #include "mgetuid.h" #define USAGE "minidentd [ -v ] [ -n | -i | -r ] [ -y file ] [ -t timeout ]" @@ -262,7 +264,7 @@ int main (int argc, char const *const *argv, char const *const *envp) r = timed_getln_g(buffer_0small, &line, '\n', &deadline) ; if (r == -1) { - if (errno == ETIMEDOUT) return 1 ; + if (errno == ETIMEDOUT || errno == ECONNRESET) return 1 ; else strerr_diefu1sys(111, "read from stdin") ; } if (!r) break ; -- cgit v1.2.3