Changeset 33462b in git


Ignore:
Timestamp:
Mar 27, 2017, 4:53:01 PM (7 years ago)
Author:
Erik M. Bray <erik.bray@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a9fbf74d7fd2c59a5fb6dcea6a74ad0dee0ebb5b
Parents:
c3b003914c0b9ce9b79928dbffdac547fdfc1700
git-author:
Erik M. Bray <erik.bray@lri.fr>2017-03-27 14:53:01+00:00
git-committer:
Erik M. Bray <erik.bray@lri.fr>2017-03-27 15:13:58+00:00
Message:
Don't try to reopen /dev/tty unless the previous file was a TTY in the first place (BI_stdin)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/fevoices.cc

    rc3b003 r33462b  
    670670  p->files = stdin;
    671671  p->sw = (isatty(STDIN_FILENO)) ? BI_stdin : BI_file;
    672   if ((pp!=NULL) && (pp->files==stdin))
     672  if ((pp!=NULL) && (pp->sw==BI_stdin) && (pp->files==stdin))
    673673  {
    674674    p->files=freopen("/dev/tty","r",stdin);
Note: See TracChangeset for help on using the changeset viewer.