diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-28 17:14:28 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-28 17:14:28 +0100 |
commit | 30ea29c4cac3e944d0b32fb9c5c9531077f867be (patch) | |
tree | 40329bf1960d72234598075782af184df26d8953 | |
parent | just in case (diff) | |
download | sat-30ea29c4cac3e944d0b32fb9c5c9531077f867be.tar.gz sat-30ea29c4cac3e944d0b32fb9c5c9531077f867be.tar.bz2 sat-30ea29c4cac3e944d0b32fb9c5c9531077f867be.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
-rw-r--r-- | src/satd-diminished.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/satd-diminished.c b/src/satd-diminished.c index 2c1308c..268aceb 100644 --- a/src/satd-diminished.c +++ b/src/satd-diminished.c @@ -87,7 +87,7 @@ main(int argc, char *argv[]) /* Pick-up where we left off. */ if (!fstat(CONN_FILENO, _attr)) { fd = CONN_FILENO; - goto fork_again; + goto peek_again; } else if (errno != EBADF) { goto fail; } @@ -110,11 +110,12 @@ accept_again: goto fail; close(fd), fd = CONN_FILENO; } -fork_again: +peek_again: if (recv(fd, &type, (size_t)1, MSG_PEEK /* Just peek in case we fail! */) <= 0) { perror(argv[0]); goto connection_done; } +fork_again: switch ((pid = fork())) { case -1: if (errno != EAGAIN) |