summaryrefslogtreecommitdiff
path: root/luit.c
diff options
context:
space:
mode:
Diffstat (limited to 'luit.c')
-rw-r--r--luit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/luit.c b/luit.c
index 41db6ff..a8258e5 100644
--- a/luit.c
+++ b/luit.c
@@ -19,7 +19,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* $XFree86: xc/programs/luit/luit.c,v 1.10 2003/02/24 01:10:25 dawes Exp $ */
+/* $XFree86: xc/programs/luit/luit.c,v 1.11 2003/09/08 14:25:30 eich Exp $ */
#include <stdio.h>
#include <stdlib.h>
@@ -545,6 +545,10 @@ parent(int pid, int pty)
#endif
installHandler(SIGCHLD, sigchldHandler);
+ rc = copyTermios(0, pty);
+ if(rc < 0)
+ FatalError("Couldn't copy terminal settings\n");
+
rc = setRawTermios();
if(rc < 0)
FatalError("Couldn't set terminal to raw\n");