Skip to content

Handling collision between standard i/o file descriptors and newly created ones

Though unlikely to happen, it may happen that newly created file descriptor take the value 0 (stdin), 1 (stdout) or 2 (stderr) if one of the standard ones have been dismissed in between. So, it may confuse the program if it is unaware of this change.

The point of this patch is to avoid a reasign of standard file descriptors on newly created ones.

Closes issue #16 (closed)

Merge request reports

Loading