version 1.20, 2015/04/24 23:17:11 |
version 1.21, 2015/10/27 13:23:24 |
|
|
return (CMD_RETURN_ERROR); |
return (CMD_RETURN_ERROR); |
tty_stop_tty(&c->tty); |
tty_stop_tty(&c->tty); |
c->flags |= CLIENT_SUSPENDED; |
c->flags |= CLIENT_SUSPENDED; |
server_write_client(c, MSG_SUSPEND, NULL, 0); |
proc_send(c->peer, MSG_SUSPEND, -1, NULL, 0); |
return (CMD_RETURN_NORMAL); |
return (CMD_RETURN_NORMAL); |
} |
} |
|
|
|
|
TAILQ_FOREACH(cloop, &clients, entry) { |
TAILQ_FOREACH(cloop, &clients, entry) { |
if (cloop->session != s) |
if (cloop->session != s) |
continue; |
continue; |
server_write_client(cloop, msgtype, |
proc_send_s(cloop->peer, msgtype, cloop->session->name); |
cloop->session->name, |
|
strlen(cloop->session->name) + 1); |
|
} |
} |
return (CMD_RETURN_STOP); |
return (CMD_RETURN_STOP); |
} |
} |
|
|
TAILQ_FOREACH(cloop, &clients, entry) { |
TAILQ_FOREACH(cloop, &clients, entry) { |
if (cloop->session == NULL || cloop == c) |
if (cloop->session == NULL || cloop == c) |
continue; |
continue; |
server_write_client(cloop, msgtype, |
proc_send_s(cloop->peer, msgtype, cloop->session->name); |
cloop->session->name, |
|
strlen(cloop->session->name) + 1); |
|
} |
} |
return (CMD_RETURN_NORMAL); |
return (CMD_RETURN_NORMAL); |
} |
} |
|
|
server_write_client(c, msgtype, c->session->name, |
proc_send_s(c->peer, msgtype, c->session->name); |
strlen(c->session->name) + 1); |
|
return (CMD_RETURN_STOP); |
return (CMD_RETURN_STOP); |
} |
} |