좀비프로세스 (1) 썸네일형 리스트형 [네트워크프로그래밍 실습05]좀비프로세스 생성방지 에코 Server #include #include #include #include #include #include #define PORT 1656 #include #include #include void do_echo(int); void sigHandler(int); readn(int fd, void *vptr, size_t n) { size_t nleft; ssize_t nread; char *ptr; ptr = vptr; nleft = n; while (nleft > 0) { if ((nread = read(fd, ptr, nleft)) < 0) { if (errno == EINTR) nread = 0; /* and call read() again */ else return (-1); } else if (nread =.. 이전 1 다음