Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9DBB5200B60 for ; Sun, 31 Jul 2016 00:32:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9C25C160A8B; Sat, 30 Jul 2016 22:32:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 16BD6160A8A for ; Sun, 31 Jul 2016 00:32:31 +0200 (CEST) Received: (qmail 46372 invoked by uid 500); 30 Jul 2016 22:32:31 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 46361 invoked by uid 99); 30 Jul 2016 22:32:31 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jul 2016 22:32:31 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DD3B3ED499; Sat, 30 Jul 2016 22:32:30 +0000 (UTC) From: grkvlt To: dev@brooklyn.apache.org Reply-To: dev@brooklyn.apache.org Message-ID: Subject: [GitHub] brooklyn-server pull request #283: Make dontRequireTtyForSudo idempotent Content-Type: text/plain Date: Sat, 30 Jul 2016 22:32:30 +0000 (UTC) archived-at: Sat, 30 Jul 2016 22:32:32 -0000 GitHub user grkvlt opened a pull request: https://github.com/apache/brooklyn-server/pull/283 Make dontRequireTtyForSudo idempotent Prevent race condition with mutiple entities (for example children of a `SoftwareProcess` or `SameServerEntity`) that share the same configuration, and could try to make this change at the same time. Still not fully resilient in the face of bad timing, but better than before. Perhaps some kind of lock file could be created using `flock` at the start of the script? You can merge this pull request into a Git repository by running: $ git pull https://github.com/grkvlt/brooklyn-server requiretty-idempotent Alternatively you can review and apply these changes as the patch at: https://github.com/apache/brooklyn-server/pull/283.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #283 ---- commit e52eaaa2db300a1ba06d65f99396a3fd5fd1c017 Author: Andrew Donald Kennedy Date: 2016-07-30T21:05:27Z Make dontRequireTtyForSudo idenpotent to prevent race condition with mutiple entities ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---