Skip to content

Commit f4296ae

Browse files
committed
Update main.cpp
1 parent d56a796 commit f4296ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ int main() {
9090
}
9191

9292
if (pid == 0) {
93-
/* 父进程退出,给子进程发送 SIGKILL 信号 */
94-
prctl(PR_SET_PDEATHSIG, SIGKILL);
93+
/* 父进程退出,给子进程发送 SIGTERM 信号 */
94+
prctl(PR_SET_PDEATHSIG, SIGTERM);
9595
close(listen_fd);
9696

9797
CLFtpHandler ftp_handler(connect_fd);

0 commit comments

Comments
 (0)