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 libc/15589] freopen would close oldfd even though oldfd is same as newfd


http://sourceware.org/bugzilla/show_bug.cgi?id=15589

--- Comment #3 from lizhijian <lizhijian at cn dot fujitsu.com> ---
Created attachment 7059
  --> http://sourceware.org/bugzilla/attachment.cgi?id=7059&action=edit
patch for freopen

When newfd is same as oldfd, __dup3 return -1 and set errno EINVAL
In this case, it don't close oldfd

-- 
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]