[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dup2 mingw failure

From: Simon Josefsson
Subject: dup2 mingw failure
Date: Fri, 08 Jan 2010 10:36:13 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

I got this on MinGW:

test-dup2.c:140: assertion failed
FAIL: test-dup2.exe

The relevant code is:

  /* The destination must be valid.  */
  errno = 0;
  ASSERT (dup2 (fd, -2) == -1);

Debugging this, it seems MinGW dup2 returns -2 in this situation.  Any
ideas?  Is -2 a valid file descriptor on MinGW for some reason?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]