Hi Ken, > Can anyone think of a reason that for this specific case closefds() > should NOT be moved from whatnowbr.c (and send.c) into sendsbr.c, and > just in the child process?
IT does seem odd to have it in the parent rather than just the child. The only thing I can think of is if it's cleaning up some file-descriptor leak in the parent, especially if one of the still-open files will be opened anew by the child. Perhaps closefds() could peer at /proc/getpid()/fd to see what these FDs that start from three onwards are? To test it's working, perhaps a `42>/tmp/foo' when running the command. -- Cheers, Ralph. -- nmh-workers https://lists.nongnu.org/mailman/listinfo/nmh-workers
