diff options
| author | info@mode42.com <info@mode42.com> | 2026-08-09 05:27:00 +0000 |
|---|---|---|
| committer | info@mode42.com <info@mode42.com> | 2026-08-09 05:27:00 +0000 |
| commit | 1cad8f1308e4af86027f9ae25523b8a8b3f6592c (patch) | |
| tree | 7fa911b052986a69728343a09f8dde3d1c206c9b /plugins/telnet/telnet.c | |
| parent | 20cb29c2f8c5c87bc590896854a20b1473ceb358 (diff) | |
Next development steps
Diffstat (limited to 'plugins/telnet/telnet.c')
| -rw-r--r-- | plugins/telnet/telnet.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/telnet/telnet.c b/plugins/telnet/telnet.c index a857b7d..dd08dd1 100644 --- a/plugins/telnet/telnet.c +++ b/plugins/telnet/telnet.c @@ -207,7 +207,7 @@ static void telnet_send_busy(int fd) return; } - (void)send(fd, msg, sizeof(msg) - 1u, 0); + (void)send(fd, msg, sizeof(msg) - 1u, MSG_NOSIGNAL); } static void *telnet_client_thread(void *arg) @@ -307,6 +307,13 @@ static void *telnet_client_thread(void *arg) } } + { + const char *uname = hybbx_session_username(session); + hybbx_log_info("[telnet] session end: user=%s fd=%d last_rc=%d", + (uname && uname[0]) ? uname : "?", + client->fd, (int)tctx.last_rc); + } + hybbx_session_close(session); shutdown(client->fd, SHUT_RDWR); close(client->fd); |
