From: Jay K <jayk123@hotmail.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: ExitProcess does not work in Cygwin?
Date: Wed, 26 Jan 2022 17:06:01 +0000 [thread overview]
Message-ID: <MWHPR1401MB1951A7E06B4204C40D618592E6209@MWHPR1401MB1951.namprd14.prod.outlook.com> (raw)
In-Reply-To: <558132565.20220126172325@yandex.ru>
> 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...
prev parent reply other threads:[~2022-01-26 17:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-13 6:39 Jay K
2022-01-13 13:40 ` Eliot Moss
2022-01-13 17:07 ` Kaz Kylheku (Cygwin)
2022-01-13 17:19 ` Brian Inglis
2022-01-13 23:15 ` Jay K
2022-01-14 6:19 ` Brian Inglis
2022-01-26 14:23 ` Andrey Repin
2022-01-26 17:06 ` Jay K [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MWHPR1401MB1951A7E06B4204C40D618592E6209@MWHPR1401MB1951.namprd14.prod.outlook.com \
--to=jayk123@hotmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).