From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14493 invoked by alias); 7 Aug 2019 05:02:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 14474 invoked by uid 89); 7 Aug 2019 05:02:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:672 X-HELO: nihcesxway5.hub.nih.gov Received: from nihcesxway5.hub.nih.gov (HELO nihcesxway5.hub.nih.gov) (128.231.90.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Aug 2019 05:02:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nih.gov; i=@nih.gov; q=dns/txt; s=NIH; t=1565154145; x=1596690145; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=SJyF/EFs7Bpho0NLgghrz1fImQnjrt52qQ8FHfi69Og=; b=Oc9VQ2zvUGKKQijzOJWfUq9Ps1c43C/YVp45df8ux4TZNgbMIN6tQPpQ jYG9/RbF2PSF3SV3VTGt/0UycgpDl4aeM92CkOPy+TPEgdlV1pBGvaVzv HjZL452DAWgXO/X5tvVsPCKMtdJu5QrYtizenJaf2sFqzHIwrG2y4eRrV xiI26IX+TttYQ4CxSgzhC8Y/qgMaXIvlWS7OLVRyzmdpH3/VBWhfEJO8c Gp42rEnRpZMrWgBZKwR6/b8FaIE/b8BqPxbJOfDlRPsnvk1GHz/mJFSMr 6AUQJY8qEFvfvNqHfsneFvmUgd+0yFXCu3yu/nCGKO/rVhm1oMoXGeiZF w==; IronPort-SDR: 3JgA3VuyeCKCRsQWgdBn12pEY6XrG+OQ11WWcGkKUYEU3wyIFkkRX7gFTT2dLeg+o3ak5KIzYW R+UKNgOOOrlA== Received: from uccsx01.nih.gov (HELO ces.nih.gov) ([165.112.194.91]) by nihcesxway5.hub.nih.gov with ESMTP/TLS/ECDHE-RSA-AES256-SHA384; 07 Aug 2019 01:02:23 -0400 Received: from uccsX03.nih.gov (165.112.194.93) by uccsX01.nih.gov (165.112.194.91) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 7 Aug 2019 01:02:23 -0400 Received: from GCC02-DM3-obe.outbound.protection.outlook.com (165.112.194.6) by uccsX03.nih.gov (165.112.194.93) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 7 Aug 2019 01:02:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hjku0o2UpqDdxoP3Qvgfore3qp/Hzkj0ahd98IpsyqJzI/d/vsKeBlEtNGL/vf/0bsJd088L7jQLmCPkd6FCrCebm3YdKe3StoRINDMMiZKP8HbHFLVVJG7RLoob2tOfpJ2MenmuNRfrWlOxcZeip5rMrwr9Huf6ByXScNNNTCkSsFjNTO+flwhW9K/rmhO00pAmrTIzI4SKFjgbPwzj3IkcL9rZbggO7RKMritB6HefXZq5734x38LjoeDOg7lBbLhfEM+sCfBvCxCQfPe5e1auHNG8aErryKGEApalhsKBqlq+3ZC71KN+cAKRUGAkvN3YxjUwwaWsI6ok1F80Pg== 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-SenderADCheck; bh=SJyF/EFs7Bpho0NLgghrz1fImQnjrt52qQ8FHfi69Og=; b=LE9Mf8UC8lo0puQZRjGq2vs9oinXqyLkMY7QDFl/rp1mfjh0oto9gHW+lzmbssO75qONtwOsuh4G2psfCqTAfplSazzNQh87uUTn/fpK1dK7NsUwK09l36SXky0JxJhykdUhZsUHcm/ltfRI7n6eGU1Q0zJ50ZL3oIF7+rpHjCALN+9wML7vrycYNqUXVZ48EBkL9SbOGn1eSTDOWX9FXV8XL4BzN4fY080Oh68/erKelVF8suQ4rkJEbFgoUdciNn+P9KK8TAxc/Wm4Vkx3h6Kc7WPwffsVF/M6oKFZeFyX8JMO1OfGwHBuQZyheERkR7KDo1ifyQWNc6Jza5xN4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ncbi.nlm.nih.gov; dmarc=pass action=none header.from=ncbi.nlm.nih.gov; dkim=pass header.d=ncbi.nlm.nih.gov; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nih.onmicrosoft.com; s=selector1-nih-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SJyF/EFs7Bpho0NLgghrz1fImQnjrt52qQ8FHfi69Og=; b=qBNwNSBVwCBssrayeTu7krNvGrL2xclwzoY28eU84yKF5scitVzGHag73LBxpREDyWv2Butq4ME2c5Q+JNqTWBdKlr98SoH1vvOtX7IxdQRYncIV0ZWAAKyUabOqDRU1qVpp9FTe/s3adF5YtmVFCgkBRQmkyZ90jxl2MR0wrfI= Received: from BL0PR0901MB4308.namprd09.prod.outlook.com (52.135.47.83) by BL0PR0901MB2355.namprd09.prod.outlook.com (52.132.22.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.15; Wed, 7 Aug 2019 05:02:22 +0000 Received: from BL0PR0901MB4308.namprd09.prod.outlook.com ([fe80::8052:3866:283f:306c]) by BL0PR0901MB4308.namprd09.prod.outlook.com ([fe80::8052:3866:283f:306c%3]) with mapi id 15.20.2157.011; Wed, 7 Aug 2019 05:02:22 +0000 From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" Reply-To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" To: "'cygwin@cygwin.com'" Subject: semget() returns EAGAIN? Date: Wed, 07 Aug 2019 05:02:00 -0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=lavr@ncbi.nlm.nih.gov; x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LPrPvWMKVoSQRNtqoK94Qao4GOlJOYwKgvTe7top1SmQjudDthk2/29XDsNz2QW/ Return-Path: lavr@ncbi.nlm.nih.gov X-SW-Source: 2019-08/txt/msg00095.txt.bz2 I'm noticing that in a high-contention situation (many processes try to get= ahold of a semaphore) semget() on Cygwin starts to return EAGAIN (try agai= n) after about 62 processes has gotten to call semget() and are actively co= mpeting for the semaphore (i.e. using the semaphore ID semget() returned to= them). EAGAIN is not documented in any of semget() API documentation that I can fi= nd. I understand that in Cygwin semget() is implemented as a connection to cygs= erver, and the error probably stems from there, but I don't think that such= a code is appropriate as a final errno. And why is there a limit, to begi= n with? What exactly imposes it? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple