mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Make the log stuff a bit tidier with some helper functions.
This commit is contained in:
parent
4ec61bef46
commit
9cccb8c115
6 changed files with 36 additions and 27 deletions
2
server.c
2
server.c
|
|
@ -173,7 +173,7 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
|
|||
}
|
||||
close(pair[0]);
|
||||
|
||||
if (debug_level > 3)
|
||||
if (log_get_level() > 3)
|
||||
tty_create_log();
|
||||
if (pledge("stdio rpath wpath cpath fattr unix getpw recvfd proc exec "
|
||||
"tty ps", NULL) != 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue