From 513c64cb0c4290bd143b6dd4e63694ef91c3887b Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sun, 30 Jun 2019 12:35:25 +0800 Subject: [PATCH] protocol: remove the O_NONBLOCK flag on pty fd it breaks zmodem support for rz --- src/protocol.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/protocol.c b/src/protocol.c index cba239d..ac6bb04 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -200,12 +200,6 @@ thread_run_command(void *args) { } } - // set the pty file descriptor non blocking - int status_flags = fcntl(pty, F_GETFL); - if (status_flags != -1) { - fcntl(pty, F_SETFL, status_flags | O_NONBLOCK); - } - lwsl_notice("started process, pid: %d\n", pid); client->pid = pid; client->pty = pty; -- 2.43.4