summary refs log tree commit diff
path: root/src/tryflock.c
blob: 68599d3897dc15dd767d2e9d5b6f193128051b8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
/* Public domain. */

#include <sys/types.h>
#include <sys/file.h>
#include <fcntl.h>

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