> Can you change setup.py as follows? Let's negociate the fdwalk stuff before I change setup.
> fdwalk doesn't exist on Linux. Can this be written without using fdwalk or > closefrom, neither of which are available on Linux? The point of using fdwalk is to support the close_all option to Popen. The standard implementation of subprocess iterates from 3 to MAXFD, calling close on every single file descriptor. To close a file descriptor used by posix_spawn, we have to add an entry to a posix_spawn_file_actions_t structure. Adding every file descriptor from 3 to MAXFD seemed wasteful. It makes a lot more sense to do this with fdwalk, since you only add the fds that are open at the time you perform the walk. I looked around on Google, but I haven't been able to find an equivalent operation in glibc. We should keep fdwalk for SunOS, since it's pretty useful. I'm open to suggestions about what we do for Linux/MacOS, though. -j _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
