emacs-devel
[Top][All Lists]
Advanced

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

Re: after r114507 cannot build on msys - dup2 problem


From: Jarek Czekalski
Subject: Re: after r114507 cannot build on msys - dup2 problem
Date: Thu, 31 Oct 2013 20:22:14 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0

If there are ever any problems with dup2 here is my analyze:

Emacs code never uses the feature of dup2, that it returns the descriptor. In most cases the return value is ignored. In emacs.c the return value is tested for < 0, which is compatible with both msvcrt and posix.

So the test in m4/dup2.m4 whether dup2(1, 1) returns 1 is not needed and could be skipped.

Other tests for dup2 are passed on mingw.

Jarek




reply via email to

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