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:mime-version:from:date:message-id:subject:to :content-type; q=dns; s=default; b=ochEDAAd3TSxqRTv/GDc8iBFarkZy dnDLodGLVVhplR1hYbelg/u7c6rbsaKcw8y7pGAU4qhJ9tF3SYny8VgjyEDRbC32 ECXlfbnbgDRDnRuP26uGx0WaUkp73PXSkbgTVgB21J31OotljNoZvwE8/25ruv+U ILFd+Uhw/wrsdg= 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:mime-version:from:date:message-id:subject:to :content-type; s=default; bh=HIZvSO4AU8fkbtlRku+gUJZdi+M=; b=hOb qC2XyMuksmycNYDU6h1NRfx2hHzuYTrl3AeFpk1ladpxjhAthRQciQoWXAcxWuNj pNNBvK6nnACvz7vpp4CGele87dWdV1UYK4p/n/pUmIF1mdeGpNiAlQ7zKUnulII4 e6blcj2PuM5DmYPWmqTZwomWl2wIhrGEZD0ouN5k= 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.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=2.5.1 X-HELO: mail-ob0-f169.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=u7fzKTSJhO01L8sVgcVSmZNRCbX+zwbXQ8qsn2fqmXk=; b=Ym8HHPRjZ9KfH2YDD6NvT/uJBRIlolelWA5Imwf6GJwa5jpcLzMyKxBXFWUPVLbY7B y/PLA+6Yd0OlKLfKoUec5W5073EyinI7Vjh14hXobSFEtpS6WKPSQQnKXyqH+4woqx3P CuhMY9tWGO2Um0Q9vBhoc4gXIPW/MTSoe0aGZT9cEI0OPWn62c/WGTfz5W51DlnE0J08 s5ysjE8Q9SPexeSJ7dV+PzeMJGBV6/YvHp/smvvrp3JZ4vhxJSt5pb8ElGqiO03GBeAI ndficGazZv9i15YEGkexlQODzHUJhqCXNtXrKCuP6SbMHk9hIboFyLZntirOpR4b0xcF PlQw== X-Gm-Message-State: ALyK8tKMP5KjK+n5qno3hpud4Wnz04M15HfQGk3vtgNE3tmaRHw6nJ76y/ZHnvqVo73HeTqKXwDSqiBI202ESA== X-Received: by 10.157.40.67 with SMTP id h3mr13835068otd.56.1466485452674; Mon, 20 Jun 2016 22:04:12 -0700 (PDT) MIME-Version: 1.0 From: RG Date: Tue, 21 Jun 2016 06:04:12 +0100 Message-ID: Subject: 2.5.1: flock blocks when it shouldn't (NT-10.0, x86_64) To: cygwin AT cygwin DOT com Content-Type: multipart/mixed; boundary=001a1142d5aa79c4fb0535c2c0e2 --001a1142d5aa79c4fb0535c2c0e2 Content-Type: text/plain; charset=UTF-8 Hello, I have encountered unexpected behavior when using flock. It will block forever, but to my understanding it should not. I've attached a simple program that would trigger the behavior. Regards, Alex --001a1142d5aa79c4fb0535c2c0e2 Content-Type: text/x-csrc; charset=US-ASCII; name="flock_hang.c" Content-Disposition: attachment; filename="flock_hang.c" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ipozj2j00 I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDx1bmlzdGQuaD4KI2luY2x1 ZGUgPHN5cy9maWxlLmg+CgpGSUxFICpmcDsKCnZvaWQgbWFpbigpIHsKICAg IHVubGluaygiYSIpOyB1bmxpbmsoImIiKTsKCiAgICBmcCA9IGZvcGVuKCJh IiwgIndiIik7IC8vIGZpbGUgYQoKICAgIHByaW50ZigibG9jayBhXG4iKTsK ICAgIGZsb2NrKGZpbGVubyhmcCksIExPQ0tfRVgpOwoKICAgIGZ3cml0ZSgi VEVTVCIsIHNpemVvZihjaGFyKSwgNCwgZnApOwoKICAgIHByaW50ZigidW5s b2NrIGFcbiIpOwogICAgZmxvY2soZmlsZW5vKGZwKSwgTE9DS19VTik7CiAg ICBmY2xvc2UoZnApOwoKICAgIGZwID0gZm9wZW4oImIiLCAid2IiKTsgIC8v IGZpbGUgYgoKICAgIHByaW50ZigibG9jayBiXG4iKTsKICAgIGZsb2NrKGZp bGVubyhmcCksIExPQ0tfRVgpOyAgLy8gaGFuZwoKICAgIGZ3cml0ZSgiVEVT VCIsIHNpemVvZihjaGFyKSwgNCwgZnApOwoKICAgIHByaW50ZigidW5sb2Nr IGJcbiIpOwogICAgZmxvY2soZmlsZW5vKGZwKSwgTE9DS19VTik7CiAgICBm Y2xvc2UoZnApOwp9Cg== --001a1142d5aa79c4fb0535c2c0e2 Content-Type: text/plain; charset=us-ascii -- 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 --001a1142d5aa79c4fb0535c2c0e2--