[Rob Browning] > Ahh, right. Though as I think you mentioned the C version doesn't use > liblockfile, which we'd want, and as the code mentions, it probably > needs fork/exec, and I'd want signal handling, etc.
Right. The C version is only 128 lines of C code, and the complete code is available from <URL: http://bugs.debian.org/660216 >. It is not using liblockfile. > So I don't know if/when I might hack on this any further, but if I do, > it may a bit. Right. The run-with-lockfile feature is used by cron jobs in a several mySociety projects like fixmystreet.com and whatdotheyknow.com, and I would really love to get all their dependencies into Debian to make my life easier when upgrading the Norwegian versions of these services to newer Debian versions in the future. What more could be done to get a simple 'run-with-lockfile' implementation available in Debian by default. Its main task is to make sure a cron job do not run several instances. The C version was very nice, as it could use the cron job script as its own lock file, which the shell version can not. -- Happy hacking Petter Reinholdtsen