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 X-Mailer: The Bat! (v6.8.8) Home X-Priority: 3 (Normal) Message-ID: <558132565.20220126172325@yandex.ru> To: Jay K , cygwin AT cygwin DOT com Subject: Re: ExitProcess does not work in Cygwin? In-Reply-To: References: <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> 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "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