mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
Sync OpenBSD patchset 347:
Remove the internal tmux locking and instead detach each client and run the command specified by a new option "lock-command" (by default "lock -np") in each client. This means each terminal has to be unlocked individually but simplifies the code and allows the system password to be used to unlock. Note that the set-password command is gone, so it will need to be removed from configuration files, and the -U command line flag has been removed. This is the third protocol version change so again it is best to stop the tmux server before upgrading.
This commit is contained in:
7
cmd.c
7
cmd.c
@ -1,4 +1,4 @@
|
||||
/* $Id: cmd.c,v 1.116 2009-09-20 22:20:10 tcunha Exp $ */
|
||||
/* $Id: cmd.c,v 1.117 2009-09-23 15:00:08 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -88,7 +88,6 @@ const struct cmd_entry *cmd_table[] = {
|
||||
&cmd_set_buffer_entry,
|
||||
&cmd_set_environment_entry,
|
||||
&cmd_set_option_entry,
|
||||
&cmd_set_password_entry,
|
||||
&cmd_set_window_option_entry,
|
||||
&cmd_show_buffer_entry,
|
||||
&cmd_show_environment_entry,
|
||||
@ -259,10 +258,6 @@ usage:
|
||||
int
|
||||
cmd_exec(struct cmd *cmd, struct cmd_ctx *ctx)
|
||||
{
|
||||
if (server_locked) {
|
||||
ctx->error(ctx, "server is locked");
|
||||
return (-1);
|
||||
}
|
||||
return (cmd->entry->exec(cmd, ctx));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user