flock
flock copied to clipboard
fix t/smartos.bats tests
omnios does not support the full set of features defined in t/default.bats, presumably because it does not have a native implementation of flock(2).
Either these features should be fixed, or disabled so users can't accidentally perform dangerous operations with a broken flock.
This was originally due to using lockf() instead of fcntl(). lockf() does not support shared locks, so these bugs should have been expected.
it actually seems that most of these are throwing Bad file number errors.
Additionally, -u is not successfully unlocking files.