aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/xterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/drivers/xterm.c')
-rw-r--r--arch/um/drivers/xterm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/um/drivers/xterm.c b/arch/um/drivers/xterm.c
index 571c2b3325d5..fe238e03a300 100644
--- a/arch/um/drivers/xterm.c
+++ b/arch/um/drivers/xterm.c
@@ -151,6 +151,13 @@ int xterm_open(int input, int output, int primary, void *d,
151 goto out; 151 goto out;
152 } 152 }
153 153
154 err = os_set_fd_block(new, 0);
155 if (err) {
156 printk("xterm_open : failed to set xterm descriptor "
157 "non-blocking, err = %d\n", -err);
158 goto out;
159 }
160
154 CATCH_EINTR(err = tcgetattr(new, &data->tt)); 161 CATCH_EINTR(err = tcgetattr(new, &data->tt));
155 if(err){ 162 if(err){
156 new = err; 163 new = err;