Changeset 205e164


Ignore:
Timestamp:
Jul 20, 2010, 2:31:33 PM (11 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
f93cc34
Parents:
d296c9a
git-author:
Alejandro R. Sedeño <asedeno@mit.edu> (06/30/10 18:36:48)
git-committer:
Alejandro R. Sedeño <asedeno@mit.edu> (07/20/10 14:31:33)
Message:
Use fpathconf to disable signals

Just using 0 is not portable. POSIX provides a portable way to find
the right value.

Reported-By: Benjamin Kaduk <kaduk@mit.edu>
Signed-off-by: Alejandro R. Sedeño <asedeno@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    rd296c9a r205e164  
    137137  tcgetattr(0, &tio);
    138138  tio.c_iflag &= ~(ISTRIP|IEXTEN);
    139   tio.c_cc[VQUIT] = 0;
    140   tio.c_cc[VSUSP] = 0;
     139  tio.c_cc[VQUIT] = fpathconf(STDIN, _PC_VDISABLE);
     140  tio.c_cc[VSUSP] = fpathconf(STDIN, _PC_VDISABLE);
    141141  tcsetattr(0, TCSAFLUSH, &tio);
    142142
Note: See TracChangeset for help on using the changeset viewer.