git: simplify sysopen usage
commit4248a76f78f7858af127dd9d1076b2d39041077a
authorEric Wong <e@80x24.org>
Fri, 4 Mar 2016 21:37:53 +0000 (4 21:37 +0000)
committerEric Wong <e@80x24.org>
Fri, 4 Mar 2016 21:37:53 +0000 (4 21:37 +0000)
tree7f9d7c192c3e477c037304ca8b24acc1aa9f94da
parent252229e161ba2dc7f2586aee0fe1777820730c55
git: simplify sysopen usage

We don't need all these excessive checks for opening/creating the
lock file, merely using O_CREAT guarantees multiple processes will
not walk over the same file during creation (flock is still needed
once opened, of course).
lib/Ssoma/Git.pm