diff options
Diffstat (limited to 'mdocml.c')
-rw-r--r-- | mdocml.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |