- Rename getpty() to xgetpty() and adjust callers.
- Rewrite kbd_mode and setconsole - Introduce and use console_make_active() and xopen_xwrite_close() - honour buffer-reservation method as set by the user (dumpkmap, loadkmap) - shrink rtcwake and some console-tools Saves about 270 Bytes
This commit is contained in:
@ -69,10 +69,7 @@ int script_main(int argc ATTRIBUTE_UNUSED, char **argv)
|
||||
shell = DEFAULT_SHELL;
|
||||
}
|
||||
|
||||
pty = getpty(pty_line);
|
||||
if (pty < 0) {
|
||||
bb_perror_msg_and_die("can't get pty");
|
||||
}
|
||||
pty = xgetpty(pty_line);
|
||||
|
||||
/* get current stdin's tty params */
|
||||
attr_ok = tcgetattr(0, &tt);
|
||||
|
Reference in New Issue
Block a user