summaryrefslogtreecommitdiffstats
path: root/cmd-server-info.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-09-02 17:34:57 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-09-02 17:34:57 +0000
commit74c35c513efc616cd56aa9bd1d7b2561fd6df132 (patch)
tree94e0715a10228a06fe1ef7833a195680767f3e64 /cmd-server-info.c
parentc5ac2579bac08f46f68ee7b9b9e47b6123e83bd2 (diff)
Accept -l to make it easier for people who use tmux as a login shell to use
$SHELL. Originally from martynas@, tweaked by me.
Diffstat (limited to 'cmd-server-info.c')
-rw-r--r--cmd-server-info.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd-server-info.c b/cmd-server-info.c
index daa08572..14212478 100644
--- a/cmd-server-info.c
+++ b/cmd-server-info.c
@@ -68,8 +68,9 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx)
tim = ctime(&start_time);
*strchr(tim, '\n') = '\0';
ctx->print(ctx, "pid %ld, started %s", (long) getpid(), tim);
- ctx->print(ctx, "socket path %s, debug level %d%s",
- socket_path, debug_level, be_quiet ? ", quiet" : "");
+ ctx->print(ctx, "socket path %s, debug level %d%s%s",
+ socket_path, debug_level, be_quiet ? ", quiet" : "",
+ login_shell ? ", login shell" : "");
if (uname(&un) == 0) {
ctx->print(ctx, "system is %s %s %s %s",
un.sysname, un.release, un.version, un.machine);