/* Public domain. */ #include #include #include main() { flock(0,LOCK_EX | LOCK_UN | LOCK_NB); }