Andrew Dunstan wrote:

> Perl provides a moderately portable flock(), which we use in fact in
> buildfarm to stop it from running more than one at a time on a given repo
> copy.
> 
[...]

> Maybe we can borrow some code.

Probably not, because it's GPL/Artistic; but we could borrow some ideas
instead.

The relevant code is here
http://public.activestate.com/cgi-bin/perlbrowse/f/pp_sys.c

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to