nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

tryflock.c (131B)


      1 #include <sys/types.h>
      2 #include <sys/file.h>
      3 #include <fcntl.h>
      4 
      5 int main(void)
      6 {
      7   return flock(0,LOCK_EX | LOCK_UN | LOCK_NB);
      8 }