X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fmonitor.c;h=6920df4e47fbe795e868742902abc884ffef5db8;hb=d25e3478acccec70402ff32554669a982be8e281;hp=9d175086ca9829725094e122f340895e173468b7;hpb=18d08023458b475bbd6734ece3b428166f74a8f3;p=sbcl.git diff --git a/src/runtime/monitor.c b/src/runtime/monitor.c index 9d17508..6920df4 100644 --- a/src/runtime/monitor.c +++ b/src/runtime/monitor.c @@ -454,6 +454,10 @@ sub_monitor(void) if (!ldb_in) { #ifndef LISP_FEATURE_WIN32 ldb_in = fopen("/dev/tty","r+"); + if (ldb_in == NULL) { + perror("Error opening /dev/tty"); + ldb_in = stdin; + } #else ldb_in = stdin; #endif