tty_setty(): * Wrapper for tcsetattr to handle EINTR */
| 480 | * Wrapper for tcsetattr to handle EINTR |
| 481 | */ |
| 482 | private int |
| 483 | tty_setty(EditLine *el, int action, const struct termios *t) |
| 484 | { |
| 485 | int rv; |
| 486 | while ((rv = tcsetattr(el->el_infd, action, t)) == -1 && errno == EINTR) |
| 487 | continue; |
| 488 | return rv; |
| 489 | } |
| 490 | |
| 491 | /* tty_setup(): |
| 492 | * Get the tty parameters and initialize the editing state |
no outgoing calls
no test coverage detected