summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2fc0447)
libc in Debian before Jessie returns einval instead of enotty
val tty = Posix.FileSys.stdin
val termios = SOME (Posix.TTY.TC.getattr tty)
handle OS.SysErr (reason, SOME syserr) =>
val tty = Posix.FileSys.stdin
val termios = SOME (Posix.TTY.TC.getattr tty)
handle OS.SysErr (reason, SOME syserr) =>
- if syserr = Posix.Error.notty then
+ if syserr = Posix.Error.notty orelse syserr = Posix.Error.inval then
(print "Warning: no terminal found, not hiding password\n";
TextIO.flushOut TextIO.stdOut;
NONE)
(print "Warning: no terminal found, not hiding password\n";
TextIO.flushOut TextIO.stdOut;
NONE)