rdm-dev / meta-jens

MIT License
0 stars 11 forks source link

flock -n immediately bails out with error ... #206

Open rehsack opened 8 years ago

rehsack commented 8 years ago

While developing a highlander solution for a local issue I re-checked flock(1) doc and realized:

   -n, --nb, --nonblock
          Fail (with an exit code of 1) rather than wait if the lock cannot be immediately acquired.

Updater relies on "flock -en" but refuses "set -e" which causes in high complex open door for as many instances as wanted being executed. Pure "set -e" results in /etc/rc.d is aborted because of errors in updater.

vmoesker commented 8 years ago

Thanks for the hint! Could you precise the imapct on the updater?

rehsack commented 8 years ago

Am 09.08.2016 um 13:34 schrieb vmoesker notifications@github.com:

Thanks for the hint! Could you precise the imapct on the updater?

Multiple running instances of flash-device.sh possible.

Cheers

Jens Rehsack - rehsack@gmail.com

vmoesker commented 8 years ago

Thanks - now even I can understand it ;-) - will make an task out of it.

BR, Volker