aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-28 17:07:01 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-28 17:07:01 +0100
commit4af28a5f25c85ed5553c061fd7680a27a5523f04 (patch)
treea67dcea46214fe3ed972293c2e305f799012c1df /src
parentaccept connections and for-exec to appropriate image (diff)
downloadsat-4af28a5f25c85ed5553c061fd7680a27a5523f04.tar.gz
sat-4af28a5f25c85ed5553c061fd7680a27a5523f04.tar.bz2
sat-4af28a5f25c85ed5553c061fd7680a27a5523f04.tar.xz
that is why I used MSG_PEEK initially
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
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;
}