> 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 <anrdae...@yandex.ru>
Sent: Wednesday, January 26, 2022 2:23 PM
To: Jay K <jayk...@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...


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to