Re: [PATCH v2] remote_daemon: Don't run virStateCleanup() if virStateReload() is still running

2022-05-23 Thread Martin Kletzander
On Thu, May 19, 2022 at 04:49:32PM +0200, Michal Privoznik wrote: When a SIGHUP is received a thread is spawned that runs virStateReload(). However, if SIGINT is received while the former thread is still running then we may get into problematic situation: the cleanup code in main() sees drivers

[PATCH v2] remote_daemon: Don't run virStateCleanup() if virStateReload() is still running

2022-05-19 Thread Michal Privoznik
When a SIGHUP is received a thread is spawned that runs virStateReload(). However, if SIGINT is received while the former thread is still running then we may get into problematic situation: the cleanup code in main() sees drivers initialized and thus calls virStateCleanup(). So now we have two