-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mike McLean wrote:
Clark Williams wrote:
> Not smart enough to argue that we should wait for our build system
> clients to weigh in. Sigh...
>
> Dan/Jeremy/Mike/Andreas/et al
>
> How are you going to use file locking? Do you just want mock to lock
> the status file when we're changing state, or is there something else
> I'm missing?
Pretty much. The lock is to prevent the watcher from reading a
partially written status file.
Something like :
flock(fileno, LOCK_EX)
<write new status>
flock(fileno, LOCK_UN)
That what you're looking for?
Clark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Fedora -
http://enigmail.mozdev.org
iD8DBQFEoVmjHyuj/+TTEp0RAlGBAKDJNG/nSNZX0CGMLgWZjuXuVrwrmwCghKPn
JcaPW7HZCR00+Q7Genx7luA=
=IdtH
-----END PGP SIGNATURE-----