On July 25, 2016 1:35:29 PM GMT+08:00, Hitoshi Ozeki <hts.oz...@gmail.com> wrote: >On Mon, 25 Jul 2016 03:33:14 +0900 I wrote: >> [wrong] fcntl(fd, F_SETFD, (long) 1); >> [correct] fcntl(fd, F_SETFD, FD_CLOEXEC); > >This "fcntl()" is used to clear the "close-on-exec flag." >I think that we should stop using the meaningless "value 1". > >[wrong] fcntl(fd, F_SETFD, (long) 1); >[correct] fcntl(fd, F_SETFD, 0); Hi, I have checked the documentation on Debian 9 and Open BSD. FD_CLOEXEC have meaning and behavior. This daemon is used on other systems besides Linux, so I will try to implement your first suggestion. Kind regards Jose M Calhariz -- Sent from my Android device with K-9 Mail. Please excuse my brevity.