summaryrefslogtreecommitdiff
path: root/tryflock.c
blob: 8c8aa7691432a3d9474be1d749671e315a7741e2 (plain)
1
2
3
4
5
6
7
8
#include <sys/types.h>
#include <sys/file.h>
#include <fcntl.h>

void main()
{
  flock(0,LOCK_EX | LOCK_UN | LOCK_NB);
}