version 1.239, 2017/06/13 07:12:33 |
version 1.240, 2017/07/12 09:07:52 |
|
|
|
|
c->flags |= CLIENT_DETACHING; |
c->flags |= CLIENT_DETACHING; |
notify_client("client-detached", c); |
notify_client("client-detached", c); |
proc_send_s(c->peer, msgtype, s->name); |
proc_send(c->peer, msgtype, -1, s->name, strlen(s->name) + 1); |
} |
} |
|
|
/* Execute command to replace a client. */ |
/* Execute command to replace a client. */ |
|
|
shell = options_get_string(global_s_options, "default-shell"); |
shell = options_get_string(global_s_options, "default-shell"); |
if (*shell == '\0' || areshell(shell)) |
if (*shell == '\0' || areshell(shell)) |
shell = _PATH_BSHELL; |
shell = _PATH_BSHELL; |
proc_send_s(c->peer, MSG_SHELL, shell); |
proc_send(c->peer, MSG_SHELL, -1, shell, strlen(shell) + 1); |
|
|
proc_kill_peer(c->peer); |
proc_kill_peer(c->peer); |
} |
} |