Re: fw_update perl glue tweaks

2022-02-14 Thread Andrew Hewus Fresh
On Mon, Feb 14, 2022 at 11:37:55AM +0100, Marc Espie wrote: > - you don't need to call unlock_db. When the process dies, the fd dies with > it, and the lock. Makes sense. it probably doesn't need the $SIG{TERM} handler if we don't need to trigger the END block anymore either. > - I've committe

Re: fw_update perl glue tweaks

2022-02-14 Thread Marc Espie
On Mon, Feb 14, 2022 at 11:37:55AM +0100, Marc Espie wrote: > - you don't need to call unlock_db. When the process dies, the fd dies with > it, and the lock. > > - I've committed glue to PackageInfo.pm to make lock_db self-contained > (it will pull BaseState in on an "as needed" basis, which also

fw_update perl glue tweaks

2022-02-14 Thread Marc Espie
- you don't need to call unlock_db. When the process dies, the fd dies with it, and the lock. - I've committed glue to PackageInfo.pm to make lock_db self-contained (it will pull BaseState in on an "as needed" basis, which also comes in handy for other locks prior to having a state) Index: fw_upd