022 2:23 PM
To: Jay K ; cygwin@cygwin.com
Subject: Re: ExitProcess does not work in Cygwin?
Greetings, Jay K!
>> Just use POSIX exit(3)!
> I did switch my code:
> #ifdef __CYGWIN__
> exit(x);
> #else
> ExitProcess(x);
> #endif
> .
It is best to avoid Cygwin-s
Greetings, Jay K!
>> Just use POSIX exit(3)!
> I did switch my code:
> #ifdef __CYGWIN__
> exit(x);
> #else
> ExitProcess(x);
> #endif
> .
It is best to avoid Cygwin-specific code.
Use either Linux(POSIX) or Windows specific tests, and only test for Cygwin if
/absolutely/ necessary.
--
On 2022-01-13 16:15, Jay K wrote:
On Thursday, January 13, 2022 5:19 PM, Brian Inglis wrote:
On 2022-01-13 10:07, Kaz Kylheku wrote:
On 2022-01-13 05:40, Eliot Moss wrote:
On 1/13/2022 1:39 AM, Jay K wrote:
ExitProcess does not work in Cygwin?
Just use POSIX exit(3)!
I did switch my
2022 5:19 PM
To: cygwin@cygwin.com
Cc: Jay K
Subject: Re: ExitProcess does not work in Cygwin?
On 2022-01-13 10:07, Kaz Kylheku (Cygwin) wrote:
> On 2022-01-13 05:40, Eliot Moss wrote:
>> On 1/13/2022 1:39 AM, Jay K wrote:
>>> ExitProcess does not work in Cygwin?
Just use POSI
On 2022-01-13 10:07, Kaz Kylheku (Cygwin) wrote:
On 2022-01-13 05:40, Eliot Moss wrote:
On 1/13/2022 1:39 AM, Jay K wrote:
ExitProcess does not work in Cygwin?
Just use POSIX exit(3)!
ExitProcess does not appear to be a POSIX function.
This is a real issue worth looking into. Though
On 2022-01-13 05:40, Eliot Moss wrote:
On 1/13/2022 1:39 AM, Jay K wrote:
ExitProcess does not work in Cygwin?
ExitProcess does not appear to be a POSIX function.
This is a real issue worth looking into. Though ExitProcess isn't a
POSIX
function, Cygwin can capture the termination status
On 1/13/2022 1:39 AM, Jay K wrote:
ExitProcess does not work in Cygwin?
$ rm *.exe
# u is for Unix
# w is for Windows
$ cat u.c
#include
int main()
{
exit(1);
}
$ gcc u.c
$ ./a.exe
$ echo $?
1
=> as expected
$ cat w.c
#include
int main()
{
ExitProcess(1);
}
$ gcc w.c
$ ./a.
ExitProcess does not work in Cygwin?
$ rm *.exe
# u is for Unix
# w is for Windows
$ cat u.c
#include
int main()
{
exit(1);
}
$ gcc u.c
$ ./a.exe
$ echo $?
1
=> as expected
$ cat w.c
#include
int main()
{
ExitProcess(1);
}
$ gcc w.c
$ ./a.exe
$ echo $?
0
=> not expected
$
8 matches
Mail list logo