emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [patch] race condition in org-babel R


From: Dan Davison
Subject: Re: [O] [patch] race condition in org-babel R
Date: Fri, 20 May 2011 13:37:39 -0700
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (darwin)

Christophe Rhodes <address@hidden> writes:

> Hi,
>
> A substantial fraction of times when exporting my org-babel document
> (with many R session code blocks), I get "code block produced no
> value".  I think this is because of a race condition between
> waiting for the transfer.file to exist and actually populating it with
> output; the scenario is: 1. write.table() creates its output file
> 2. emacs notices its existence, and reads it 3. write.table() gets round
> to writing .Last.value to the file.
>
> The attached patch has made exporting much more reliable for me.

Thanks, I agree that the race condition seems plausible, and I've
applied a slight modification of your patch (the initial evaluation of
the "object" argument looks pointless, but was there to ensure that
errors in user code are not smothered by the subsequent exception
handling.)

Dan

>
>
>
> Best,
>
> Christophe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]