aboutsummaryrefslogtreecommitdiffstats
path: root/tools/watchgnupg.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/watchgnupg.c')
-rw-r--r--tools/watchgnupg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/watchgnupg.c b/tools/watchgnupg.c
index 7f79f2f18..50f9d7274 100644
--- a/tools/watchgnupg.c
+++ b/tools/watchgnupg.c
@@ -354,7 +354,7 @@ main (int argc, char **argv)
int n;
n = read (client->fd, line, sizeof line - 1);
- if (n == 1)
+ if (n < 0)
{
int save_errno = errno;
print_line (client, NULL); /* flush */