delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/01/26/09:35:23

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9C8E23858403
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=yandex.ru
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
t=1643207701; bh=XkoGBNhkqPLpJykk0/dXDH/gZsX2Gg+cj4SwVG/hb+o=;
h=In-Reply-To:Subject:From:Message-ID:References:Date:Reply-To:To;
b=YEsg12oKqaSZ4I05OLwv0kdWo7gNKKsmy15pcIQ+4cEmEKS+QEezl6BM7CHC/81v7
K03TPm183wLbUibzJLVZSXn64lYqTXpm2AL69DRf3Isdb6AeCiPTPOmfwOhV/9UDDc
kCP1IW6dcq8r0Pbr7MYZAqCWIITaKH6vXC6mjSTU=
Authentication-Results: vla1-b85deedef156.qloud-c.yandex.net;
dkim=pass header.i=@yandex.ru
X-Yandex-Fwd: 2
Date: Wed, 26 Jan 2022 17:23:25 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
X-Mailer: The Bat! (v6.8.8) Home
X-Priority: 3 (Normal)
Message-ID: <558132565.20220126172325@yandex.ru>
To: Jay K <jayk123 AT hotmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: ExitProcess does not work in Cygwin?
In-Reply-To: <MWHPR1401MB1951C6A27882346C9E2234C2E6539@MWHPR1401MB1951.namprd14.prod.outlook.com>
References: <MWHPR1401MB1951896B7184CC9CC408CD07E6539 AT MWHPR1401MB1951 DOT namprd14 DOT prod DOT outlook DOT com>
<1f98eb84-e3d7-bf0d-875c-3d4818e41aef AT cs DOT umass DOT edu>
<72e0f0601676717a2702ff13beb45b80 AT mail DOT kylheku DOT com>
<4f1b70a7-22e0-685b-ab00-9af895ed4e51 AT SystematicSw DOT ab DOT ca>
<MWHPR1401MB1951C6A27882346C9E2234C2E6539 AT MWHPR1401MB1951 DOT namprd14 DOT prod DOT outlook DOT com>
MIME-Version: 1.0
X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT 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...


-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019