diff options
author | Jakob Unterwurzacher | 2025-08-03 22:01:58 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2025-08-03 22:02:41 +0200 |
commit | 00ea6f7e5607a933767a8778d60b8d14e4d9f20d (patch) | |
tree | a05ea5102867a736c27064ac72e9567abbeae475 /go.mod | |
parent | ddcc7405e68e6be2cce02dddde3fa6e019c62951 (diff) |
test.bash: use flock without subshell
From man 1 flock:
shell> exec 4<>/var/lock/mylockfile; shell> flock -n 4
This form is convenient for locking a file without spawning a
subprocess. The shell opens the lock file for reading and
writing as file descriptor 4, then flock is used to lock the
descriptor.
Diffstat (limited to 'go.mod')
0 files changed, 0 insertions, 0 deletions