mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
The output log is only useful once and it means creating a file, so open
it once at startup instead of in every call to tty_open.
This commit is contained in:
parent
01defc9f49
commit
abb4e9e2fa
4 changed files with 23 additions and 26 deletions
2
server.c
2
server.c
|
|
@ -173,6 +173,8 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
|
|||
}
|
||||
close(pair[0]);
|
||||
|
||||
if (debug_level > 3)
|
||||
tty_create_log();
|
||||
if (pledge("stdio rpath wpath cpath fattr unix recvfd proc exec tty "
|
||||
"ps", NULL) != 0)
|
||||
fatal("pledge failed");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue