aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-28 17:14:28 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-28 17:14:28 +0100
commit30ea29c4cac3e944d0b32fb9c5c9531077f867be (patch)
tree40329bf1960d72234598075782af184df26d8953 /src
parentjust in case (diff)
downloadsat-30ea29c4cac3e944d0b32fb9c5c9531077f867be.tar.gz
sat-30ea29c4cac3e944d0b32fb9c5c9531077f867be.tar.bz2
sat-30ea29c4cac3e944d0b32fb9c5c9531077f867be.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/satd-diminished.c5
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)