summaryrefslogtreecommitdiffstats
path: root/mdocml.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdocml.c')
-rw-r--r--mdocml.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mdocml.c b/mdocml.c
index 4f7eac9a..84ceec26 100644
--- a/mdocml.c
+++ b/mdocml.c
@@ -106,6 +106,9 @@ leave_io(const struct md_buf *out,
warn("%s", out->name);
c = 1;
}
+ if (1 == c && STDOUT_FILENO != out->fd)
+ if (-1 == unlink(out->name))
+ warn("%s", out->name);
return(c);
}