[pacman-dev] Improve locking?
20 Feb
2021
20 Feb
'21
4 a.m.
I still have issues with leftover lock file. I have some questions: In pacman.c cleanup function, the signal handler is removed before unlocking because
The soft interrupt handler dereferences config, causing a segfault if it is called during cleanup.
(commit a8e2578febbb71d1b788c7270c2be57ca1e64dec) 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 a lot. Thanks in advance. -- Best regards, lilydjwg
1442
Age (days ago)
1442
Last active (days ago)
0 comments
1 participants
participants (1)
-
lilydjwg