X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:reply-to:to:subject:date:message-id :content-type:content-transfer-encoding:mime-version; q=dns; s= default; b=qw82UyWi9h/XvVJMrub9tA65qCWwJqzVZTy/6D2HjfJbApOd97Cxt mGZ7GrRVAd0il+3vAgoRpH8SbgJvgWG3w63L+mQ0C66V22qIfli80VTKMe+iuCjm oY2ykobww/RGPV9gONFid7rLgSToOpMs/hQYq0FF7vX8rTEMTNF0HM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:reply-to:to:subject:date:message-id :content-type:content-transfer-encoding:mime-version; s=default; bh=dYtDHSEowDfrpGDrqBW3HFlgANM=; b=AjJrv7jMRFFiS2eIPENpyQcKgEw3 rig2WAlCPD/0WbPg274r6Xqqtj0wCAAEgAUp85wUynud89UehgUC2NYP3DDHND1b BvAZeJ3sugwlrFQmx2k1UoOgDHoM8U8yeK4cHZfuz4V4FttvmbfPt+7HVFJ7jPU+ 9tI948tq5XEAvlo= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 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== 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= From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" Reply-To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" To: "'cygwin AT cygwin DOT com'" Subject: semget() returns EAGAIN? Date: Wed, 7 Aug 2019 05:02:22 +0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=lavr AT ncbi DOT nlm DOT nih DOT 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" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LPrPvWMKVoSQRNtqoK94Qao4GOlJOYwKgvTe7top1SmQjudDthk2/29XDsNz2QW/ Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x77535be025604 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 again) after about 62 processes has gotten to call semget() and are actively competing 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 find. I understand that in Cygwin semget() is implemented as a connection to cygserver, 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 begin 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