On Fri, Feb 26, 2016 at 05:51:28PM +0300, Yuriy M. Kaminskiy wrote: > + if (O_CLOEXEC == 0) fcntl(inst->lock, F_SETFD, FD_CLOEXEC); Thanks, but I think this is overkill. It really seems enough to provide mkostemp fallback than promise O_CLOEXEC functionality on systems where it's not implemented. Maybe if we want to be friendly to non-linux and old libs than we can add check to ./configure.ac and print warning on systems without O_CLOEXEC. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html