Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
MakingL committed Jan 9, 2020
1 parent d56a796 commit f4296ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f4296ae

Please sign in to comment.