summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 0fb22d6..1f25c98 100644
--- a/src/util.c
+++ b/src/util.c
@@ -29,6 +29,7 @@
#include <xalloc.h>
#include <getdate.h>
+#include "ignore-value.h"
#include <signal.h>
#if !defined SIGCHLD && defined SIGCLD
@@ -1007,7 +1008,7 @@ ask (char const *format, ...)
{
perror ("tty read");
fflush (stderr);
- close (ttyfd);
+ ignore_value (close (ttyfd));
ttyfd = -1;
r = 0;
}