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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=CB6peJ44pbCZ3ZTV LOuYhmtlrLyRaubJ1JajhGKJCltKuf4O9BXuNzSsQvibckUKqt70VxTmdZi/rIdF P04RPYrVNUUB31v39Ov3WcdhZA8NbH5UbOUyeNx3KxjbmA09bdM0CKysGIddWV0l wV5rte0EnF0hG32Pu3uZ7C3+4CQ= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=YMj2wSpc3FfXfziYstLrHs IQgDY=; b=Nwna99J1vYXRIuD2cuRlQhXoR8pC9xZUDSyM0hHGxpNuyMhm3RJBG3 qeFIhQFLbzN5ZlpVc2qmvbZS5PU81CnpJd00LX5SZTKUyEGAaVlAxJqVpa4BD3ve NQgNUpmDALR2O/nEnQ99Xr8w2dWklR3D2EefsP4p1yIewx4yqJ/F4= 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-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=65536, 0Semaphore, 0semaphore, viewed X-HELO: mail-qk0-f175.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=aJsc0nb9BSknHqX1e0K2/SWxdJkNKcfTXTKM+UyHDHE=; b=mksvBCAlJZ2KhmmDWxYvVF0JeTV3o83vQwBmgu3Sv7DN/bGA3ShZnYUA+IuP3+FYLD UpNxDjmW8Fk+66UR3eU5hb6lqCzPlIqxi88BDZg8zOXi3qeraMc9ha5+7kNQGb9UqmqK atkb9+MZTq+SHEe7fHFALBYC+Qv/IxM+J+H3pMfP6UpHDUxOsqrrvstEdEAPESq9maqI tpg0T2fiELfFzgqlTjzQFLX66x57yI1DoAY1QyZpkkloBs0VbPEB/phgzLX3DJ9OMrQr NSqNydnxOCOPTQoscNR6Z+zwLy3NSmDubLFzM37HK4EpPZBlxhVTliCuVZehIbHecdaS 5xRw== X-Gm-Message-State: AD7BkJKgnY0WECqtdiq+IAHiWGWpbDGmsvYWiDiEbJHePbXjpoWERDSGhs5mDmg+566FlA== X-Received: by 10.55.24.87 with SMTP id j84mr10798262qkh.92.1457696486513; Fri, 11 Mar 2016 03:41:26 -0800 (PST) Subject: Re: SEMCTL fails with error 22 To: cygwin AT cygwin DOT com References: From: Marco Atzeri Message-ID: <56E2AEE1.7000703@gmail.com> Date: Fri, 11 Mar 2016 12:41:21 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 11/03/2016 11:52, Meenakshi Pant wrote: > For me the out put is when cygserver is up. > > Semaphore Test > Semaphore created successfully 196608 > Value before errno = 0 > Cannot set semaphore value.errno = 22 > > When cygserver is down the output is > > Semaphore Test > Unable to obtain semaphore 88 > > > After bringing up cygserver the command 'cygcheck -c' shows the below output. > As mentioned https://cygwin.com/problems.html "Run cygcheck -s -v -r > cygcheck.out and include that file as an attachment in your report. Please do not compress or otherwise encode the output. Just attach it as a straight text file so that it can be easily viewed." I have exactly the same results as Achim ./semtest.exe Semaphore Test Semaphore created successfully 65536 Value before errno = 0Semaphore 1492 initialized. On both 32 and 64 bit. So it seems a specific issue on your system side. What software are you running ? Any potential Bloda ? https://cygwin.com/faq/faq.html#faq.using.bloda Looks also on "detect_bloda" at https://cygwin.com/cygwin-ug-net/using-cygwinenv.html Regards Marco -- 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