[Klug-general] Checking For Duplicate Instance Of Script

James Morris jwm.art.net at gmail.com
Wed Dec 21 13:18:50 UTC 2011


related:  http://en.wikipedia.org/wiki/Atomic_operation


On 21 December 2011 13:13, James Morris <jwm.art.net at gmail.com> wrote:
> I quickly skim-read your post yesterday and multi-threaded issues
> immediately sprung to mind, ie reading and writing occur
> simultaneously due to multi-processors/cores/etc.
>
>
> http://en.wikipedia.org/wiki/Race_condition#File_systems
>
> sorry no time for properly looking right now.
>
> james.
>
>
> On 21 December 2011 12:37, David Halliday <david.halliday at gmail.com> wrote:
>> I'll give that a try but since all my other functions have been working as
>> expected to date with that format I'll put it down as overkill.
>> Functions Doc: http://tldp.org/LDP/abs/html/functions.html
>>
>> I'll give that a try to see if it's what is causing the strange behaviour.
>>
>>
>> On 21 December 2011 12:27, Laurence Southon <laurence at southon.uk.net> wrote:
>>>
>>> On 20/12/11 21:32, David Halliday wrote:
>>> > function checkForDuplicateScript(){
>>>
>>> I don't know if it's the reason but that function declaration should be
>>> either:
>>>
>>> function checkForDuplicateScript { ... }
>>>
>>> or
>>>
>>> checkForDuplicateScript () { ... }
>>>
>>> Not the keyword 'function' and '()' at the same time.
>>>
>>> LS
>>> --
>>> Laurence Southon
>>> Tiger Computing, Bexley
>>> www.tiger-computing.co.uk
>>>
>>> _______________________________________________
>>> Kent mailing list
>>> Kent at mailman.lug.org.uk
>>> https://mailman.lug.org.uk/mailman/listinfo/kent
>>
>>
>>
>> _______________________________________________
>> Kent mailing list
>> Kent at mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/kent



More information about the Kent mailing list