emacs-devel
[Top][All Lists]
Advanced

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

Re: Too many warnings building Emacs with GCC 6 on MSYS2-MinGW64


From: Eli Zaretskii
Subject: Re: Too many warnings building Emacs with GCC 6 on MSYS2-MinGW64
Date: Thu, 01 Sep 2016 19:29:53 +0300

> Cc: Angelo Graziosi <address@hidden>, address@hidden,
>         address@hidden
> From: Davis Herring <address@hidden>
> Date: Thu, 1 Sep 2016 10:17:36 -0600
> 
> > On Unix, execve indeed returns an int, because it's a process ID.  On
> > Windows, the return value can be a process handle, which is a 64-bit
> > data type on 64-bit Windows.  That is why the return value must be
> > intptr_t, not an int.
> 
> No, it's an error code.  (You said as much for POSIX in your following 
> message, but it's an error code on all systems.)  If it succeeds, the 
> process image has been replaced and it doesn't return at all.

On Windows, the error code is returned from a function that can also
return a process handle.  Look in the MS CRT sources, and you will see
it.



reply via email to

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