From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95809 invoked by alias); 21 Jun 2016 05:04:17 -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 95790 invoked by uid 89); 21 Jun 2016 05:04:16 -0000 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 Received: from mail-ob0-f169.google.com (HELO mail-ob0-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 21 Jun 2016 05:04:14 +0000 Received: by mail-ob0-f169.google.com with SMTP id c3so6926870obc.2 for ; Mon, 20 Jun 2016 22:04:14 -0700 (PDT) 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 Received: by 10.182.76.66 with HTTP; Mon, 20 Jun 2016 22:04:12 -0700 (PDT) From: RG Date: Tue, 21 Jun 2016 09:04:00 -0000 Message-ID: Subject: 2.5.1: flock blocks when it shouldn't (NT-10.0, x86_64) To: cygwin@cygwin.com Content-Type: multipart/mixed; boundary=001a1142d5aa79c4fb0535c2c0e2 X-SW-Source: 2016-06/txt/msg00271.txt.bz2 --001a1142d5aa79c4fb0535c2c0e2 Content-Type: text/plain; charset=UTF-8 Content-length: 206 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 Content-length: 753 I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDx1bmlzdGQuaD4KI2luY2x1 ZGUgPHN5cy9maWxlLmg+CgpGSUxFICpmcDsKCnZvaWQgbWFpbigpIHsKICAg IHVubGluaygiYSIpOyB1bmxpbmsoImIiKTsKCiAgICBmcCA9IGZvcGVuKCJh IiwgIndiIik7IC8vIGZpbGUgYQoKICAgIHByaW50ZigibG9jayBhXG4iKTsK ICAgIGZsb2NrKGZpbGVubyhmcCksIExPQ0tfRVgpOwoKICAgIGZ3cml0ZSgi VEVTVCIsIHNpemVvZihjaGFyKSwgNCwgZnApOwoKICAgIHByaW50ZigidW5s b2NrIGFcbiIpOwogICAgZmxvY2soZmlsZW5vKGZwKSwgTE9DS19VTik7CiAg ICBmY2xvc2UoZnApOwoKICAgIGZwID0gZm9wZW4oImIiLCAid2IiKTsgIC8v IGZpbGUgYgoKICAgIHByaW50ZigibG9jayBiXG4iKTsKICAgIGZsb2NrKGZp bGVubyhmcCksIExPQ0tfRVgpOyAgLy8gaGFuZwoKICAgIGZ3cml0ZSgiVEVT VCIsIHNpemVvZihjaGFyKSwgNCwgZnApOwoKICAgIHByaW50ZigidW5sb2Nr IGJcbiIpOwogICAgZmxvY2soZmlsZW5vKGZwKSwgTE9DS19VTik7CiAgICBm Y2xvc2UoZnApOwp9Cg== --001a1142d5aa79c4fb0535c2c0e2 Content-Type: text/plain; charset=us-ascii Content-length: 218 -- 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--