mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-23 04:14:18 +01:00
protocol: remove the O_NONBLOCK flag on pty fd
it breaks zmodem support for rz
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user