mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-01-29 06:04:25 +01:00
Fix signal string not work, revert to sys_signame
This commit is contained in:
@@ -84,7 +84,7 @@ tty_client_destroy(struct tty_client *client) {
|
||||
client->running = false;
|
||||
|
||||
// kill process and free resource
|
||||
lwsl_notice("sending %s to process %d\n", server->sig_name, client->pid);
|
||||
lwsl_notice("sending %s (%d) to process %d\n", server->sig_name, server->sig_code, client->pid);
|
||||
if (kill(client->pid, server->sig_code) != 0) {
|
||||
lwsl_err("kill: pid, errno: %d (%s)\n", client->pid, errno, strerror(errno));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user