summaryrefslogtreecommitdiff
path: root/graphics/asymptote/interact.cc
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/interact.cc')
-rw-r--r--graphics/asymptote/interact.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/asymptote/interact.cc b/graphics/asymptote/interact.cc
index 6e21f15116..1009b1d477 100644
--- a/graphics/asymptote/interact.cc
+++ b/graphics/asymptote/interact.cc
@@ -123,6 +123,10 @@ void pre_readline()
int fd=intcast(settings::getSetting<Int>("inpipe"));
if(fd >= 0) {
if(!fin) fin=fdopen(fd,"r");
+ if(!fin) {
+ cerr << "Cannot open inpipe " << fd << endl;
+ exit(-1);
+ }
Readline=readpipeline;
} else {
#if defined(HAVE_READLINE) && defined(HAVE_LIBCURSES)