diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-08-15 12:07:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-08-15 12:07:50 +0000 |
commit | 65fb512795af2e4f3c258661e6aa05e5441ce076 (patch) | |
tree | b038403c466b6a2d577b5c1e5778794d2436197b /src/pty.c | |
parent | Adding upstream version 1.6.3+20220719. (diff) | |
download | ttyd-65fb512795af2e4f3c258661e6aa05e5441ce076.tar.xz ttyd-65fb512795af2e4f3c258661e6aa05e5441ce076.zip |
Adding upstream version 1.7.0.upstream/1.7.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/pty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -470,7 +470,7 @@ int pty_spawn(pty_process *process, pty_read_cb read_cb, pty_exit_cb exit_cb) { status = -errno; goto error; } - if (fcntl(master, F_SETFD, flags | O_NONBLOCK) == -1) { + if (fcntl(master, F_SETFL, flags | O_NONBLOCK) == -1) { status = -errno; goto error; } @@ -502,4 +502,4 @@ error: waitpid(pid, NULL, 0); return status; } -#endif
\ No newline at end of file +#endif |