aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authornicm <nicm>2015-07-13 15:49:31 +0000
committernicm <nicm>2015-07-13 15:49:31 +0000
commitc7374c31c4ba176e94825e8d734b5abe8a6879b1 (patch)
tree862211dc6d3c5137f9aee3b8feb19ea9ddcd9eaf /server.c
parent81069f66f96dd83025fc6f2990619eb861199e10 (diff)
downloadrtmux-c7374c31c4ba176e94825e8d734b5abe8a6879b1.tar.gz
rtmux-c7374c31c4ba176e94825e8d734b5abe8a6879b1.tar.bz2
rtmux-c7374c31c4ba176e94825e8d734b5abe8a6879b1.zip
Initialize cwd fd to -1 so that we don't close fd 0 if the client is
destroyed before it is changed. Also allow ttyname() to fail. Fixes problems when running out of file descriptors reported by Bruno Sutic.
Diffstat (limited to 'server.c')
0 files changed, 0 insertions, 0 deletions