diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-28 17:07:01 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-28 17:07:01 +0100 |
commit | 4af28a5f25c85ed5553c061fd7680a27a5523f04 (patch) | |
tree | a67dcea46214fe3ed972293c2e305f799012c1df /src/satd-diminished.c | |
parent | accept connections and for-exec to appropriate image (diff) | |
download | sat-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/satd-diminished.c')
-rw-r--r-- | src/satd-diminished.c | 2 |
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; } |