aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/satd-diminished.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/satd-diminished.c b/src/satd-diminished.c
index d887e27..7ab6478 100644
--- a/src/satd-diminished.c
+++ b/src/satd-diminished.c
@@ -92,7 +92,7 @@ accept_again:
}
}
fork_again:
- if (recv(fd, &type, (size_t)1, 0) <= 0) {
+ if (recv(fd, &type, (size_t)1, MSG_PEEK /* Just peek in case we fail! */) <= 0) {
perror(argv[0]);
goto connection_done;
}