version 1.72, 2017/02/09 15:04:53 |
version 1.73, 2017/03/09 17:02:38 |
|
|
} |
} |
wl->session = s; |
wl->session = s; |
|
|
env = environ_create(); |
|
environ_copy(global_environ, env); |
|
environ_copy(s->environ, env); |
|
server_fill_environ(s, env); |
|
|
|
shell = options_get_string(s->options, "default-shell"); |
shell = options_get_string(s->options, "default-shell"); |
if (*shell == '\0' || areshell(shell)) |
if (*shell == '\0' || areshell(shell)) |
shell = _PATH_BSHELL; |
shell = _PATH_BSHELL; |
|
|
hlimit = options_get_number(s->options, "history-limit"); |
hlimit = options_get_number(s->options, "history-limit"); |
|
env = environ_for_session(s); |
w = window_create_spawn(name, argc, argv, path, shell, cwd, env, s->tio, |
w = window_create_spawn(name, argc, argv, path, shell, cwd, env, s->tio, |
s->sx, s->sy, hlimit, cause); |
s->sx, s->sy, hlimit, cause); |
if (w == NULL) { |
if (w == NULL) { |
|
|
return (NULL); |
return (NULL); |
} |
} |
winlink_set_window(wl, w); |
winlink_set_window(wl, w); |
notify_session_window("window-linked", s, w); |
|
environ_free(env); |
environ_free(env); |
|
notify_session_window("window-linked", s, w); |
|
|
session_group_synchronize_from(s); |
session_group_synchronize_from(s); |
return (wl); |
return (wl); |