Commit Graph

23 Commits

Author SHA1 Message Date
Shuanglei Tao
d6921b235d protocol: add conpty support 2021-03-03 21:02:33 +08:00
Shuanglei Tao
49068cf536 utils: remove useless include 2021-02-20 23:25:21 +08:00
Shuanglei Tao
75105f6d48 protocol: use 2 pipe for read and write 2021-02-06 01:03:49 +08:00
Shuanglei Tao
2fdb4c0c03 src: reformat with clang-format 2020-03-14 17:46:26 +08:00
Fredrik Fornwall
d99193171d Avoid trying to redefine sys_signame on Android (#253)
On Android <signal.h> defines sys_signame, so trying to redefine it
causes the build to fail.
2019-12-13 14:06:06 +08:00
Shuanglei Tao
b67e382ab8 server: improve child process handling 2019-12-11 21:14:17 +08:00
Shuanglei Tao
cfd338ea5e terminal: set the pty fd non blocking 2019-12-05 23:19:34 +08:00
Stuart Henderson
921ddda658 use errno.h not sys/errno.h in utils.c as in other files (#207)
Use errno.h rather than sysno/errno.h in utils.c, unbreaking build on OpenBSD (the "errno" symbol is only defined in errno.h not in sys/errno.h).

protocol.c and server.c already include errno.h rather than sys/errno.h so this should be safe on other OS here also.
2019-07-31 16:09:13 +08:00
Shuanglei Tao
106902420a utils: fix wait status 2019-05-12 11:35:54 +08:00
Shuanglei Tao
e73a8e8587 protocol: cleanup process without hanging 2019-05-11 10:05:51 +08:00
Shuanglei Tao
be91d56904 src: seprate includes from server.h 2018-08-18 09:59:19 +08:00
Shuanglei Tao
a5b8905c19 Support numeric value for --signal 2017-11-05 11:17:03 +08:00
Shuanglei Tao
a59da79d62 Remove the --signal-list option 2017-11-05 11:11:06 +08:00
Shuanglei Tao
896ca9c44c Add support for the --signal-list option 2017-02-11 08:20:08 +08:00
Shuanglei Tao
c4dd409aac Fix signal string not work, revert to sys_signame 2017-02-08 23:14:24 +08:00
Shuanglei Tao
e4c4fea1cb Add support for the --browser option 2017-02-05 20:52:10 +08:00
Shuanglei Tao
f0414d30d8 Improve base64 decode and utf8 handling 2017-02-03 11:23:59 +08:00
Shuanglei Tao
de75490d3e Add support for listening on UNIX domain socket 2017-01-30 21:50:57 +08:00
Shuanglei Tao
70cb376208 Replace sys_signame with strsignal and rename malloc functions 2016-12-24 22:02:49 +08:00
Shuanglei Tao
b39cd986ed Make ttyd compiles on cygwin 2016-11-29 22:41:44 +08:00
Shuanglei Tao
a16fdfdbd4 base64_encode: do not use openssl anymore 2016-10-28 13:48:31 +08:00
Shuanglei Tao
9174d6116c Implemented authentication for websocket connection 2016-09-25 01:00:34 +08:00
Shuanglei Tao
1f579b491a Move source files to src 2016-09-19 22:20:40 +08:00