Commit Graph

24 Commits

Author SHA1 Message Date
Shuanglei Tao
6bce1a112b pty: polish args join code 2023-10-30 11:18:58 +08:00
Shuanglei Tao
75ea04e900 pty: print process exit code on error 2023-01-13 08:40:52 +08:00
Shuanglei Tao
25e9522af4 pty: remove uv_read error log 2022-11-04 15:09:48 +08:00
jzw-weride
4ca49a10d6 pty: fix use-after-free issue when closing a connection (#997) 2022-10-11 22:50:48 +08:00
Shuanglei Tao
520ce1733c pty: remove close call on windows 2022-08-18 11:33:30 +08:00
Shuanglei Tao
6cfd9b29ae protocol: fix potential pty buf leak 2022-08-18 10:38:55 +08:00
Shuanglei Tao
d7db63726c protocol: fix potential null pss access 2022-08-17 16:55:49 +08:00
pseudo
1be5f5c063 pty.c: Fix errant use of fcntl F_SETFD (#951)
* pty.c: Fix errant use of fcntl F_SETFL

When this was added in cfd338ea5e

We before this time the *File descriptor flags* (`F_GETFD`/`F_SETFD`) were augmented to include `FD_CLOEXEC`
Then at this time the additional code added the *File status flags* (`F_GETFL`/`F_SETFL`) to include `O_NONBLOCK`, but this was weaved through code working with `F_SETFD` instead of `F_SETFL`. Some systems may use one big status word for all of them. Mine certainly dont.

FIXES #733
2022-08-04 09:45:09 +08:00
Shuanglei Tao
fcec9a66d6 pty: inherit env from parent process 2021-08-19 00:19:40 +08:00
Shuanglei Tao
1415e5c56b pty: fix cwd on windows 2021-08-16 23:55:15 +08:00
Shuanglei Tao
bff3a617e6 server: add cwd support 2021-08-16 23:08:05 +08:00
Shuanglei Tao
968f1e6e70 pty: set TTYD_USER env 2021-08-15 14:55:37 +08:00
Shuanglei Tao
b2cda1d68c drop libwebsockets < 3.2.0 support 2021-08-10 22:20:56 +08:00
Shuanglei Tao
619bfc34cd pty: set TERM env for the pty process 2021-08-08 20:05:34 +08:00
Shuanglei Tao
811fb5982f pty: fix error handling 2021-07-27 00:24:55 +08:00
Shuanglei Tao
c5f414b25a all: remove the vla usage 2021-03-16 21:40:44 +08:00
Shuanglei Tao
2480810eb3 protocol: fix -Wstringop-overflow compile warning 2021-03-14 11:57:57 +08:00
Shuanglei Tao
21b9aefbe3 protocol: cleanup unused code 2021-03-11 22:56:49 +08:00
Shuanglei Tao
cbb31ea4aa protocol: improve exit code handling 2021-03-07 13:05:29 +08:00
Shuanglei Tao
02bbbec678 pty: rename pty_close to pty_kill 2021-03-06 17:39:05 +08:00
Shuanglei Tao
96e88fb4ce protocol: set windows size on spawm process 2021-03-06 14:27:05 +08:00
Shuanglei Tao
3929e5c2b6 pty: polish pty_spawn code 2021-03-06 12:50:50 +08:00
Shuanglei Tao
52adaba9e1 pty: use uint16_t for resize params 2021-03-05 23:46:57 +08:00
Shuanglei Tao
d6921b235d protocol: add conpty support 2021-03-03 21:02:33 +08:00