log file rename

This commit is contained in:
Nicolas Viennot 2015-12-23 22:58:22 -05:00
parent c04755361c
commit 42ac90ca49

2
tty.c
View File

@ -66,7 +66,7 @@ tty_create_log(void)
{ {
char name[64]; char name[64];
xsnprintf(name, sizeof name, "tmux-out-%ld.log", (long)getpid()); xsnprintf(name, sizeof name, "tmate-out-%ld.log", (long)getpid());
tty_log_fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644); tty_log_fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
if (tty_log_fd != -1 && fcntl(tty_log_fd, F_SETFD, FD_CLOEXEC) == -1) if (tty_log_fd != -1 && fcntl(tty_log_fd, F_SETFD, FD_CLOEXEC) == -1)