aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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: