flock



http://en.wikipedia.org/wiki/File_locking#Linux
http://www.thinkage.ca/english/gcos/expl/c/lib/fileno.html

%d bloggers like this: