Content
@
0 reply
0 recast
0 reaction
Ryan
@ryansmith
Has anyone here used FLOCK(2)? https://linux.die.net/man/2/flock
1 reply
0 recast
2 reactions
Shane da Silva
@sds
Only ever read about it in TLPI. Seemed like if you found yourself using this you might be _too_ close to the metal, but some like to live dangerously. Did you end up using it? https://man7.org/tlpi/
1 reply
0 recast
1 reaction
Ryan
@ryansmith
I ended up using pg advisory locks since i already had a pg. There have been times in bash scripting that I needed to ensure only 1 process is running at a time. I have also used FIFOs for this sort of thing. https://www.postgresql.org/docs/9.1/functions-admin.html#FUNCTIONS-ADVISORY-LOCKS
0 reply
0 recast
1 reaction