From: Andrey Repin <anrdaemon@yandex.ru>
To: Jay K <jayk123@hotmail.com>, cygwin@cygwin.com
Subject: Re: ExitProcess does not work in Cygwin?
Date: Wed, 26 Jan 2022 17:23:25 +0300 [thread overview]
Message-ID: <558132565.20220126172325@yandex.ru> (raw)
In-Reply-To: <MWHPR1401MB1951C6A27882346C9E2234C2E6539@MWHPR1401MB1951.namprd14.prod.outlook.com>
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...
next prev parent reply other threads:[~2022-01-26 14:35 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 [this message]
2022-01-26 17:06 ` Jay K
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=558132565.20220126172325@yandex.ru \
--to=anrdaemon@yandex.ru \
--cc=cygwin@cygwin.com \
--cc=jayk123@hotmail.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).