From: Jason S. Ninneman Date: Thu, 25 May 2017 05:31:26 +0000 (-0700) Subject: Stop command-logging from non-stdin sources. X-Git-Tag: seed~52 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=580565e254e3efaf14e237ca4de6a902e6d50a0b;p=open-adventure.git Stop command-logging from non-stdin sources. --- diff --git a/misc.c b/misc.c index b6ca80e..4d0a89d 100644 --- a/misc.c +++ b/misc.c @@ -894,7 +894,7 @@ long I, VAL; if (logfp && OPENED == stdin) fclose(logfp); } else { - if (logfp) + if (logfp && OPENED == stdin) IGNORE(fputs(INLINE+1, logfp)); else if (!isatty(0)) IGNORE(fputs(INLINE+1, stdout));