On Wed, Oct 24, 2012 at 10:22 AM, Florian Weimer <fwei...@redhat.com> wrote:
>>> Is it OK to call dup on the same FD the second time? >> >> >> To answer my own question: >> >> dup(4) = 9 >> ... >> close(9) = 0 >> dup(4) = -1 EBADF (Bad file descriptor) >> >> Test is calling dup on a closed file descriptor. FD 4 and 9 share file >> status flags. > > > I suspect that this is something else because this works: [...] You are right, this example works on alpha, too. Thanks, Uros.