From f4296ae3fae52796b0e3732b8d60078cdf5b5c72 Mon Sep 17 00:00:00 2001 From: MichaelLee Date: Thu, 9 Jan 2020 16:26:32 +0800 Subject: [PATCH] Update main.cpp --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 2be3b66..34bb148 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -90,8 +90,8 @@ int main() { } if (pid == 0) { - /* 父进程退出,给子进程发送 SIGKILL 信号 */ - prctl(PR_SET_PDEATHSIG, SIGKILL); + /* 父进程退出,给子进程发送 SIGTERM 信号 */ + prctl(PR_SET_PDEATHSIG, SIGTERM); close(listen_fd); CLFtpHandler ftp_handler(connect_fd);