aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-28 17:13:24 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-28 17:13:24 +0100
commitee4f65d6f00876f6bd43c7aa57bdd462d3fde4fd (patch)
tree268f20049a270328053b0d89ba2c47eb3f1997b0
parentsupport recovering from a crash (diff)
downloadsat-ee4f65d6f00876f6bd43c7aa57bdd462d3fde4fd.tar.gz
sat-ee4f65d6f00876f6bd43c7aa57bdd462d3fde4fd.tar.bz2
sat-ee4f65d6f00876f6bd43c7aa57bdd462d3fde4fd.tar.xz
just in case
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/satd-diminished.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/satd-diminished.c b/src/satd-diminished.c
index 7d18a27..2c1308c 100644
--- a/src/satd-diminished.c
+++ b/src/satd-diminished.c
@@ -88,6 +88,8 @@ main(int argc, char *argv[])
if (!fstat(CONN_FILENO, _attr)) {
fd = CONN_FILENO;
goto fork_again;
+ } else if (errno != EBADF) {
+ goto fail;
}
accept_again: