Re: dup2() vs dup3() inconsistency when

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: H. Peter Anvin
Date: Thursday, October 9, 2008 - 1:57 pm

Ulrich Drepper wrote:

It's not the source descriptor, per se, it is the "new" descriptor, 
which happens to have a side effect of closing the "old" descriptor.


Inconsistency is bad, too, and one could *definitely* argue that the 
fundamental problem is the one of closing a pre-existing descriptor 
rather than forcing the user to do that explicitly if that behaviour was 
desired.

	-hpa
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
dup2() vs dup3() inconsistency when, Michael Kerrisk, (Thu Oct 9, 5:10 am)
Re: dup2() vs dup3() inconsistency when, H. Peter Anvin, (Thu Oct 9, 10:21 am)
Re: dup2() vs dup3() inconsistency when, Ulrich Drepper, (Thu Oct 9, 1:31 pm)
Re: dup2() vs dup3() inconsistency when, H. Peter Anvin, (Thu Oct 9, 1:43 pm)
Re: dup2() vs dup3() inconsistency when, Ulrich Drepper, (Thu Oct 9, 1:52 pm)
Re: dup2() vs dup3() inconsistency when, H. Peter Anvin, (Thu Oct 9, 1:57 pm)
Re: dup2() vs dup3() inconsistency when, Ulrich Drepper, (Thu Oct 9, 2:04 pm)
Re: dup2() vs dup3() inconsistency when, Michael Kerrisk, (Thu Oct 9, 10:01 pm)
Re: dup2() vs dup3() inconsistency when, Michael Kerrisk, (Thu Oct 9, 10:04 pm)
Re: dup2() vs dup3() inconsistency when, Bernd Petrovitsch, (Fri Oct 10, 5:09 am)
Re: dup2() vs dup3() inconsistency when, Michael Kerrisk, (Fri Oct 10, 5:15 am)
Re: dup2() vs dup3() inconsistency when, Bernd Petrovitsch, (Fri Oct 10, 6:02 am)
Re: dup2() vs dup3() inconsistency when, Michael Kerrisk, (Fri Oct 10, 6:15 am)
Re: dup2() vs dup3() inconsistency when, Bernd Petrovitsch, (Fri Oct 10, 6:31 am)
Re: dup2() vs dup3() inconsistency when, Heikki Orsila, (Fri Oct 10, 6:43 am)