summaryrefslogtreecommitdiffstats
path: root/src/pty.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-08-15 12:07:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-08-15 12:07:55 +0000
commit400dd63304ac4cf32d3de99b1a72ee38c19aa01d (patch)
tree7785814cca173c33a5d389a029dc4aa1e9fb822b /src/pty.c
parentReleasing debian version 1.6.3+20220719-4. (diff)
downloadttyd-400dd63304ac4cf32d3de99b1a72ee38c19aa01d.tar.xz
ttyd-400dd63304ac4cf32d3de99b1a72ee38c19aa01d.zip
Merging upstream version 1.7.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/pty.c')
-rw-r--r--src/pty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pty.c b/src/pty.c
index e5d47ed..b046a6a 100644
--- a/src/pty.c
+++ b/src/pty.c
@@ -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