All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Simultaneous build of two intree packages
Date: Mon, 07 May 2012 15:08:29 -0600	[thread overview]
Message-ID: <4FA839CD.4020203@mlbassoc.com> (raw)
In-Reply-To: <1336424471.2074.4.camel@dasty-laptop>

On 2012-05-07 15:01, Radek Dostal wrote:
> On Mon, 2012-05-07 at 08:46 -0700, Khem Raj wrote:
>>> usually it crashes during "ln -sf target dest" which is executed
>>> simultaneously with same parameters for both builds. There are other
>>> issues as well in addition to this ln issue.
>>
>> This is confusing why does this happen at all
>
> Because ln -sf first do symlink(1) unlink(2) and symlink(3) again. In
> case link is created by another process between 2 and 3 than ln fails.
>
> It is quite well described here:
> http://rcrowley.org/2010/01/06/things-unix-can-do-atomically.html
>
> I was also able to verify my finding by running two ln -sf in two for
> loops in two different terminals and they were failing constantly.
>
> So any idea on implementing locks/mutexes inside OE. If somebody can
> point me in the right direction I should be able to implement and feed
> back.

I think that your recipes are not well behaved - two recipes probably
should not be creating the same file in such a way.

Can you post the recipes, or at least the code snippets that break?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



  reply	other threads:[~2012-05-07 21:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-07 11:54 Simultaneous build of two intree packages Radek Dostal
2012-05-07 12:02 ` Gary Thomas
2012-05-07 12:33   ` Radek Dostal
2012-05-07 15:46     ` Khem Raj
2012-05-07 21:01       ` Radek Dostal
2012-05-07 21:08         ` Gary Thomas [this message]
2012-05-07 21:23           ` Radek Dostal
2012-05-08 23:36             ` Ciprian Ciubotariu
2012-05-07 21:42         ` Khem Raj
2012-05-07 21:42         ` Khem Raj
2012-05-08 21:31     ` Ulf Samuelsson
2012-05-09  7:27       ` Radek Dostal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FA839CD.4020203@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.