ExitProcess does not work in Cygwin?
Jay K
jayk123@hotmail.com
Wed Jan 26 17:06:01 GMT 2022
> It is best to avoid Cygwin-specific code.
Agreed.
The code is mostly only ifdef win32 vs. Posix but just a few spots are Cygwin-specific.
(and Apple specific, Solaris specific, IA64-specific etc.)
- Jay
________________________________
From: Andrey Repin <anrdaemon@yandex.ru>
Sent: Wednesday, January 26, 2022 2:23 PM
To: Jay K <jayk123@hotmail.com>; cygwin@cygwin.com <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-specific code.
Use either Linux(POSIX) or Windows specific tests, and only test for Cygwin if
/absolutely/ necessary.
--
With best regards,
Andrey Repin
Wednesday, January 26, 2022 17:22:01
Sorry for my terrible english...
More information about the Cygwin
mailing list