diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2024-04-20 14:52:44 +0200 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2024-04-23 13:26:54 +0200 |
commit | d14b633ea1337d56c6b0420cfdca21681cedaf50 (patch) | |
tree | a9cd6c4593c358ce56f202c153a85a44a308be32 /src/irmd | |
parent | ce2b8755c6aa4101b0c4c4e097c7bc71493594c0 (diff) | |
download | ouroboros-d14b633ea1337d56c6b0420cfdca21681cedaf50.tar.gz ouroboros-d14b633ea1337d56c6b0420cfdca21681cedaf50.zip |
irmd: Fix shutdown on configfile failure
The state was set to IRMD_NULL, so the IRMd was still waiting for a
signal to actually shut down. It should be set to IRMD_SHUTDOWN.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd')
-rw-r--r-- | src/irmd/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c index bc13fa7c..5d91baf0 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -2076,7 +2076,7 @@ int main(int argc, #ifdef HAVE_TOML if (irm_configure(irmd.cfg_file) < 0) { - irmd_set_state(IRMD_NULL); + irmd_set_state(IRMD_SHUTDOWN); ret = EXIT_FAILURE; } #endif |