792N/A@@ -25,6 +25,7 @@ THE SOFTWARE.
792N/A@@ -36,6 +37,7 @@ THE SOFTWARE.
792N/A@@ -483,9 +485,11 @@ setup_io(int pty)
792N/A installHandler(SIGCHLD, sigchldHandler);
792N/A rc = copyTermios(0, pty);
792N/A FatalError("Couldn't copy terminal settings\n");
919N/A@@ -627,6 +631,10 @@ child(char *line, char *path, char *const argv[])
919N/A write_waitpipe(c2p_waitpipe);
919N/A+ restoreTermios_1(tty, TCSAFLUSH);
919N/A@@ -24,6 +24,7 @@ THE SOFTWARE.
@@ -246,6 +247,14 @@ restoreTermios(void)
+restoreTermios_1(int fd, int opt)
+ return tcsetattr(fd, opt, &saved_tio);
index 5bfe0d2..3d95f20 100644
@@ -38,6 +38,7 @@ int installHandler(int signum, void (*handler) (int));
int copyTermios(int sfd, int dfd);
int restoreTermios(void);
+int restoreTermios_1(int fd, int opt);
char *my_basename(char *path);
int allocatePty(int *pty_return, char **line_return);