Conversation
Notices
-
ikeji (ikeji@ostatus.ikeji.ma)'s status on Tuesday, 19-Sep-2023 23:30:16 JST ikeji ちゃうねん。flockコマンドはコマンドじゃなくてfdを引数に取れるんや。 -
ikeji (ikeji@ostatus.ikeji.ma)'s status on Tuesday, 19-Sep-2023 23:49:34 JST ikeji https://man7.org/linux/man-pages/man1/flock.1.html
```
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.
```
spawningしとるやろが
-