version 1.90, 2015/10/27 13:23:24 |
version 1.91, 2015/10/27 15:58:42 |
|
|
long pid; |
long pid; |
|
|
if (s != NULL) { |
if (s != NULL) { |
term = options_get_string(&global_options, "default-terminal"); |
term = options_get_string(global_options, "default-terminal"); |
environ_set(env, "TERM", term); |
environ_set(env, "TERM", term); |
|
|
idx = s->id; |
idx = s->id; |
|
|
if (c->flags & CLIENT_SUSPENDED) |
if (c->flags & CLIENT_SUSPENDED) |
return; |
return; |
|
|
cmd = options_get_string(&c->session->options, "lock-command"); |
cmd = options_get_string(c->session->options, "lock-command"); |
if (strlen(cmd) + 1 > MAX_IMSGSIZE - IMSG_HEADER_SIZE) |
if (strlen(cmd) + 1 > MAX_IMSGSIZE - IMSG_HEADER_SIZE) |
return; |
return; |
|
|
|
|
server_redraw_session_group(s); |
server_redraw_session_group(s); |
} |
} |
|
|
if (options_get_number(&s->options, "renumber-windows")) { |
if (options_get_number(s->options, "renumber-windows")) { |
if ((sg = session_group_find(s)) != NULL) { |
if ((sg = session_group_find(s)) != NULL) { |
TAILQ_FOREACH(target_s, &sg->sessions, gentry) |
TAILQ_FOREACH(target_s, &sg->sessions, gentry) |
session_renumber_windows(target_s); |
session_renumber_windows(target_s); |
|
|
} |
} |
|
|
if (dstidx == -1) |
if (dstidx == -1) |
dstidx = -1 - options_get_number(&dst->options, "base-index"); |
dstidx = -1 - options_get_number(dst->options, "base-index"); |
dstwl = session_attach(dst, srcwl->window, dstidx, cause); |
dstwl = session_attach(dst, srcwl->window, dstidx, cause); |
if (dstwl == NULL) |
if (dstwl == NULL) |
return (-1); |
return (-1); |
|
|
wp->fd = -1; |
wp->fd = -1; |
} |
} |
|
|
if (options_get_number(&w->options, "remain-on-exit")) { |
if (options_get_number(w->options, "remain-on-exit")) { |
if (old_fd == -1) |
if (old_fd == -1) |
return; |
return; |
screen_write_start(&ctx, wp, &wp->base); |
screen_write_start(&ctx, wp, &wp->base); |
|
|
struct client *c; |
struct client *c; |
struct session *s_new; |
struct session *s_new; |
|
|
if (!options_get_number(&s->options, "detach-on-destroy")) |
if (!options_get_number(s->options, "detach-on-destroy")) |
s_new = server_next_session(s); |
s_new = server_next_session(s); |
else |
else |
s_new = NULL; |
s_new = NULL; |
|
|
RB_FOREACH(s, sessions, &sessions) { |
RB_FOREACH(s, sessions, &sessions) { |
if (!(s->flags & SESSION_UNATTACHED)) |
if (!(s->flags & SESSION_UNATTACHED)) |
continue; |
continue; |
if (options_get_number (&s->options, "destroy-unattached")) |
if (options_get_number (s->options, "destroy-unattached")) |
session_destroy(s); |
session_destroy(s); |
} |
} |
} |
} |
|
|
struct timeval tv; |
struct timeval tv; |
int delay; |
int delay; |
|
|
delay = options_get_number(&c->session->options, "display-panes-time"); |
delay = options_get_number(c->session->options, "display-panes-time"); |
tv.tv_sec = delay / 1000; |
tv.tv_sec = delay / 1000; |
tv.tv_usec = (delay % 1000) * 1000L; |
tv.tv_usec = (delay % 1000) * 1000L; |
|
|