From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward501p.mail.yandex.net (forward501p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:120]) by sourceware.org (Postfix) with ESMTPS id 9C8E23858403 for ; Wed, 26 Jan 2022 14:35:03 +0000 (GMT) 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 Received: from vla1-b85deedef156.qloud-c.yandex.net (vla1-b85deedef156.qloud-c.yandex.net [IPv6:2a02:6b8:c0d:89c:0:640:b85d:eede]) by forward501p.mail.yandex.net (Yandex) with ESMTP id 52675621259C; Wed, 26 Jan 2022 17:35:01 +0300 (MSK) Received: from vla1-7ac6c018a59a.qloud-c.yandex.net (vla1-7ac6c018a59a.qloud-c.yandex.net [2a02:6b8:c0d:3a16:0:640:7ac6:c018]) by vla1-b85deedef156.qloud-c.yandex.net (mxback/Yandex) with ESMTP id K9MGw6vA5g-Z1c4hNv9; Wed, 26 Jan 2022 17:35:01 +0300 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 Received: by vla1-7ac6c018a59a.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id 5V0o3mbNn1-Z0IqJfVK; Wed, 26 Jan 2022 17:35:00 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Fwd: 2 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Wed, 26 Jan 2022 14:23:25 -0000 Date: Wed, 26 Jan 2022 17:23:25 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home Reply-To: cygwin@cygwin.com X-Priority: 3 (Normal) Message-ID: <558132565.20220126172325@yandex.ru> To: Jay K , cygwin@cygwin.com Subject: Re: ExitProcess does not work in Cygwin? In-Reply-To: References: <1f98eb84-e3d7-bf0d-875c-3d4818e41aef@cs.umass.edu> <72e0f0601676717a2702ff13beb45b80@mail.kylheku.com> <4f1b70a7-22e0-685b-ab00-9af895ed4e51@SystematicSw.ab.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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@cygwin.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: , X-List-Received-Date: Wed, 26 Jan 2022 14:35:06 -0000 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...