Re: how to close port/socket from parent process?help!!!!!!!!!# Unix - 噫吁兮,危乎高哉
m*e
1 楼
fcntl(fd, F_SETFD, FD_CLOEXEC) in your parent process, so this fd will be
closed automatically if you do exec in the child process.
closed automatically if you do exec in the child process.