if (process_running(pss->process)) {
pty_pause(pss->process);
lwsl_notice("killing process, pid: %d\n", pss->process->pid);
- pty_close(pss->process, server->sig_code);
+ pty_kill(pss->process, server->sig_code);
}
if (server->once && server->client_count == 0) {
#endif
}
-bool pty_close(pty_process *process, int sig) {
+bool pty_kill(pty_process *process, int sig) {
process->killed = true;
#ifdef _WIN32
return TerminateProcess(process->handle, 1) != 0;
void pty_resume(pty_process *process);
int pty_write(pty_process *process, pty_buf_t *buf);
bool pty_resize(pty_process *process);
-bool pty_close(pty_process *process, int sig);
+bool pty_kill(pty_process *process, int sig);
#endif // TTYD_PTY_H