/* $Id: tryflock.c 616 2005-08-19 20:11:01Z bruce $ */ #include #include #include void main() { flock(0,LOCK_EX | LOCK_UN | LOCK_NB); }