This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug stdio/21398] freopen does not check dup3 return value, and does not return error if dup3 fails (seen when open returns fd 0, and freopen on stdin)


https://sourceware.org/bugzilla/show_bug.cgi?id=21398

--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> ---
In the (non-normative) application usage of close POSIX says: "Usage of close()
on file descriptors STDIN_FILENO, STDOUT_FILENO, or STDERR_FILENO should
immediately be followed by an operation to reopen these file descriptors."

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]