diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-05-30 13:42:57 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-05-30 13:42:57 +0000 |
commit | 169d36294563fb079e423f421aa4777a7e09df16 (patch) | |
tree | 28222dbdbfa30643c4e61315028d21f09aa816fd /tmux.c | |
parent | c6fc8771a9ebcfe0a10e9cc6889a1c1836369b78 (diff) | |
download | rtmux-169d36294563fb079e423f421aa4777a7e09df16.tar.gz rtmux-169d36294563fb079e423f421aa4777a7e09df16.tar.bz2 rtmux-169d36294563fb079e423f421aa4777a7e09df16.zip |
Sync OpenBSD patchset 1123:
Simplify logging and just fprintf(stderr, ...) for early errors.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -76,7 +76,7 @@ logfile(const char *name) log_close(); if (debug_level > 0) { xasprintf(&path, "tmux-%s-%ld.log", name, (long) getpid()); - log_open_file(debug_level, path); + log_open(debug_level, path); xfree(path); } } @@ -300,8 +300,6 @@ main(int argc, char **argv) if (shell_cmd != NULL && argc != 0) usage(); - log_open_tty(debug_level); - if (!(flags & IDENTIFY_UTF8)) { /* * If the user has set whichever of LC_ALL, LC_CTYPE or LANG @@ -385,7 +383,7 @@ main(int argc, char **argv) /* -L or default set. */ if (label != NULL) { if ((path = makesocketpath(label)) == NULL) { - log_warn("can't create socket"); + fprintf(stderr, "can't create socket\n"); exit(1); } } |