top | item 42516677

(no title)

oseityphelysiol | 1 year ago

Of all the quirks with process spawning in posix keeping file descriptors open is the most problematic one I encountered. This bit into my ass while implementing a C library to have proper process spawning and stdio handling in LUA. I really wish file descriptors were non inheritable by default.

discuss

order

teddyh|1 year ago

> I really wish file descriptors were non inheritable by default.

In Python 3.4, they are (released ten years ago).

int_19h|1 year ago

But in POSIX, they are not, so any module implemented in C is still potentially problematic.