[pacman-dev] Improve locking?
lilydjwg at gmail.com
Sat Feb 20 04:00:40 UTC 2021
I still have issues with leftover lock file. I have some questions:
In pacman.c cleanup function, the signal handler is removed before
> The soft interrupt handler dereferences config, causing a segfault if
> it is called during cleanup.
Why wasn't it to check if config is not NULL instead?
Why wasn't flock used? I mean, in addition to current lock mechanism,
flock the file. I know flock doesn't work for a couple of places (NFS,
non-Linux, etc), but if it works for someone's situation, it would help
Thanks in advance.
More information about the pacman-dev