diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-05-25 08:28:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-05-25 08:28:11 +0000 |
commit | 901172262afa9f37f2f6ba043f387ecb39830288 (patch) | |
tree | 795596f2513c2d598be81a48194e9d6f562f467e /usr.bin/tmux/tmux.c | |
parent | 3f0f03c8ee809caa8c707c7f696453806e4779fe (diff) |
Simplify logging and just fprintf(stderr, ...) for early errors.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r-- | usr.bin/tmux/tmux.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c index 1cb7364f11c..fd8b7b5d633 100644 --- a/usr.bin/tmux/tmux.c +++ b/usr.bin/tmux/tmux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.c,v 1.108 2012/01/21 08:40:09 nicm Exp $ */ +/* $OpenBSD: tmux.c,v 1.109 2012/05/25 08:28:10 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -73,7 +73,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); } } @@ -294,8 +294,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 @@ -379,7 +377,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); } } |