From: Shuanglei Tao Date: Sun, 30 Jun 2019 04:35:25 +0000 (+0800) Subject: protocol: remove the O_NONBLOCK flag on pty fd X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=513c64cb0c4290bd143b6dd4e63694ef91c3887b;p=ttyd.git protocol: remove the O_NONBLOCK flag on pty fd it breaks zmodem support for rz --- 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;