summaryrefslogtreecommitdiffstatshomepage
path: root/mdocml.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdocml.c')
-rw-r--r--mdocml.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mdocml.c b/mdocml.c
index 1bcff459..1b8dcc67 100644
--- a/mdocml.c
+++ b/mdocml.c
@@ -1,4 +1,4 @@
-/* $Id: mdocml.c,v 1.14 2008/11/28 11:21:12 kristaps Exp $ */
+/* $Id: mdocml.c,v 1.15 2008/12/02 00:10:37 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);
}