summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2018-05-24 09:34:55 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2018-05-24 09:34:55 +0000
commit99ae952fb5951366f160e00bcb8af3ad15f5fed0 (patch)
treefc04d5057c19b5b58dcdf5722568a64d14668287 /usr.bin
parent901a925974440d74d6a80a57c03848253d17859f (diff)
Improve logging of the environment etc for new panes.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/window.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index 8a99a9f9039..4f4e485d7a8 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.208 2018/03/16 15:15:39 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.209 2018/05/24 09:34:54 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -917,10 +917,11 @@ window_pane_spawn(struct window_pane *wp, int argc, char **argv,
wp->flags &= ~(PANE_STATUSREADY|PANE_STATUSDRAWN);
cmd = cmd_stringify_argv(wp->argc, wp->argv);
- log_debug("spawn: %s -- %s", wp->shell, cmd);
+ log_debug("%s: shell=%s", __func__, wp->shell);
+ log_debug("%s: command=%s", __func__, cmd);
for (i = 0; i < wp->argc; i++)
- log_debug("spawn: argv[%d] = %s", i, wp->argv[i]);
- environ_log(env, "spawn: ");
+ log_debug("%s: argv[%d]=%s", __func__, i, wp->argv[i]);
+ environ_log(env, "%s: environment ", __func__);
memset(&ws, 0, sizeof ws);
ws.ws_col = screen_size_x(&wp->base);
@@ -998,6 +999,8 @@ window_pane_spawn(struct window_pane *wp, int argc, char **argv,
execl(wp->shell, argv0, (char *)NULL);
fatal("execl failed");
}
+ log_debug("%s: master=%s", __func__, ttyname(wp->fd));
+ log_debug("%s: slave=%s", __func__, wp->tty);
sigprocmask(SIG_SETMASK, &oldset, NULL);
setblocking(wp->fd, 0);