X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT sourceware DOT org Delivered-To: cygwin AT sourceware DOT org DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 210543858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=hotmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=hotmail.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mEZPeeb4sSbX/f3+wLYmbCNf8vjz1/kpIzrBOVAn6/ylFBbc+5FQXAVjdBuzATdsCKxALuvtEHqrC5L6QCvd3u9peBwma0yTr3gsxnc64Ns9HQp7v5/blTxh8wzbxHWbcVoUEHyEEvLLtP0apchOTIVyoM7tbk/6VN9ENY0x5Sqqq7WKaVNg7RstOcpKJiVPobeGV981cFBXrAAZbolwdHALr+ZWjhy3zDBU2deU/LdrD9devngproj9NC9rMIvR8BhuU6zOJjWAwZsSJsfidg26DBJP37UFGsWgcEYpmGK1sC0OGy+6xEYtugQu9U6TklIXmEww0DfBRF7e38mMrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=i1L+xu2rP5w70fc5ct8Kr0uWDyYFLvHaq5Klg5UVUMY=; b=NxrbhwDVFKx82W95c0yKNlvu07ZsNgZly11YZ4NqKU9I3ITbKGuIaQ1wR2z7+iBI2084aqnnR5qBsv795qkeuyPMAIoTPJDJpf2uB0p3Xl96llnjwPCmeGVF8FUEFqCB6cLRooS+AUJCOBkJ9gzJi2neZtpnqSU2rplHOjkaRbqEATb7aMP/X/qog74RTM5dgGTQRuEAi8/Y89UmftyAYcE/KdvUqo00gDGTef4L6DfYQa4N7xQjaydGzBvsQ/yQa1aSokpWSpNpnirW58j1DCOzf38+0ODUOlmf+Sdbe9eMJWEVS5DygnStOJCuFAYlclCw8w6l2dHSskxqokb+IQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i1L+xu2rP5w70fc5ct8Kr0uWDyYFLvHaq5Klg5UVUMY=; b=HzW6CCssge1UmCpo+YPSz4ZlMxmmb3LmgKqbBsk+N3sQKL625TkGKZPXtm4+YOnipj809WzM2ud2gZEA+xGsvIwCb/n7UFEaNRn97wZ/0G8em9r6waGJmMh5m8PN4l4nXIGReDyxbBMPRa2t7UGQ1hISBuQubgu85zNbCLGOlPhAmiwjUmOupFmoEtoiLGa9tT06NARelEOs05O5Px1jpv4mRqlCWiJ5d4Oomqj4RevhE9NrjqPba9J4PPuJ5HSUaUz2/1QlFGs7ktWW6Pn37dHlDPhraIpT91rdoLWV0n/86VlyKdGkZ69WTk4PMozGJpxGajI3j0Rq4zPvtiJ3ig== From: Jay K To: "cygwin AT sourceware DOT org" Subject: ExitProcess does not work in Cygwin? Thread-Topic: ExitProcess does not work in Cygwin? Thread-Index: AQHYCEfOC6OhOx+KnE+yn5cQgqAkbw== Date: Thu, 13 Jan 2022 06:39:01 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: ad56c076-784a-760d-a3b7-056bf710cda1 x-tmn: [bZRoH4Gk22aWNppFA94Czz6jqEI5POfTmyUrFHNHB9uudeiISKBYza9dwvC6bb0r] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b11cbc8e-715a-480e-675a-08d9d65f62e0 x-ms-traffictypediagnostic: CO6PR14MB4353:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +J0YDF0siDXNKqnbnGcgYbo5x9rxlbd66zomFa6ix0lTlytIMI7gVXJhyhCJfcbKZQg3H+JRRQH1GJkcqCSTYlb6myHtiMfJZ1o9mgBpStVpRDHW7IObcvU4wy5c5OWvM7R1j6OSfNLk4RdJOCNzhw4JyntQEvahDX+1slxLGHwqXtD7/spuo+iS5/sVcNugmJKb2BKzPPSSlsZUeOMIptRexHyQno+5QdSbnNyOutPQrfXLKZYFCXxIyeF8eOjJW011heTknrJS7Zqn54wUtuU62th487d9JjEwoyLMLtUaxq1HwPe989MKqgs1Otz9zWO2FYPZf5X3+OE86Ox8LBNbn/yEoTGn3cebUnhouttPkJUkKuvRTGankl/rqbZhVFNXnrWjr4KIXylXRlr9MU9WjwAi3q8Tq0Cd5zw+TAl3bWauBsaEPdN0eXVyx9J1ZJwV2P0zAkst2jj64gHFQ3QQJ2uyAcPafEgLnpPCJcJasPr36WsLc0S3aRzn1/v3it0YZopNNlssd3rHjCLo6fKkuhzQ/KGLiyfFhSPLpJ+Jbi/lXiSw0kNhK3fsMmZyXPhDvi9zs1NbmHzM4uwbpA== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?inZqLo9nSnQKiS+hpMpiGlstyK5x6moo0ZCaeKxAdfQrPuoaVw7u13J/jJ?= =?iso-8859-1?Q?+QvNkVuacY1y3A75W7Z4Y0Te2jQM4NcNEiQEwC7nTc398RRvCNTxnJDjgq?= =?iso-8859-1?Q?cgJ1Cj/IG9eL+Mf3Mj+FqWwm96e0SBstgcN9a2cwvvS99yG12/GNYh03SI?= =?iso-8859-1?Q?j1tUck1ph/m4Jf0OxEbMSMLqZs5ffibAVpPw58EexN7pDtzJ0XYlffxE5L?= =?iso-8859-1?Q?L+UPzPFrwdX+g1PFXMT4Aw3vQLbaBckmVPKZTX5cKbgG/Qf9lTMo6CdkvH?= =?iso-8859-1?Q?eagjFA7tlak8Mbh/wYq/sbKWlNd6sg9uN6yavTU7eua4zAklPYZcjToRln?= =?iso-8859-1?Q?P+14L35lbMSK8AjBnEWX9WFHcL+HLId8jT1jI5R9cqsZj5yZK488iLhwke?= =?iso-8859-1?Q?gSqLUzDQ0R/MndAHN17YxKifyU4Jl2/lgDfbU9VoYoage4c2F/BRnNNvf5?= =?iso-8859-1?Q?4i3qPaydLemTsBCtzfiQjjQ1bW4zemajeQ+kJZrG+e2UH9EIXuZ2YPnbby?= =?iso-8859-1?Q?tRzkLRVoEIJE6VwKUaNNV3ZbeTYygFahX/Ym5jO4iIYx1vL4eN9QZxpobG?= =?iso-8859-1?Q?8Oz4oqM40tiIraQQIkg1ptSbdw0S80NkA/uJXBAsFkY4tCVo0C1riBVUMx?= =?iso-8859-1?Q?cmuKpyghJ93TNQvozlA68va0ItXQ1Bwf9Kat/zxXGHV7OLmFLL23bdJlqa?= =?iso-8859-1?Q?FnFmdUtrYyHGmO7ycplvrf5ZEqWjfTndcvT67zhKvfsQ2/WD4y0mSJlpcp?= =?iso-8859-1?Q?WeYet44KbhkOPZ0T0Rs0zXfbxWPBZyKvUIqB8C52ivUEWGqG3ZmYKX+LZO?= =?iso-8859-1?Q?2iw9AapHU+xmrqSI5ySq2L9nN7sRRmgnkwrPa8InYVrPBEVyuhN3RPN2vR?= =?iso-8859-1?Q?e9ldAR0McxR+8oW7ut6aIzk6moC2Amg6ZPnAbb1N6BdudrQMntEA07dGh/?= =?iso-8859-1?Q?gMuMIld4S7RsXC/1lwJECRXiLzwl4VUB+jr1DxRZl9y3cRyddUMqdFRFdt?= =?iso-8859-1?Q?PahMQsu57ZosmApV/UUkH9BEunaEFTKwJaVlbI?= MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-cd57b.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR1401MB1951.namprd14.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: b11cbc8e-715a-480e-675a-08d9d65f62e0 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jan 2022 06:39:01.7965 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR14MB4353 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" ExitProcess does not work in Cygwin? $ rm *.exe # u is for Unix # w is for Windows $ cat u.c #include int main() { exit(1); } $ gcc u.c $ ./a.exe $ echo $? 1 => as expected $ cat w.c #include int main() { ExitProcess(1); } $ gcc w.c $ ./a.exe $ echo $? 0 => not expected $ uname -a CYGWIN_NT-10.0 jayk-tp4 3.3.3(0.341/5/3) 2021-12-03 16:35 x86_64 Cygwin works in debugger: $ /cygdrive/c/bin/amd64/windbg.exe .\\a.exe $ echo $? 1 ? - Jay -- 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