summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-01-27 18:44:55 +0100
committerLeah Neukirchen <leah@vuxu.org>2022-01-27 18:44:55 +0100
commit27132b5b5a769d90d3e98289ef8d5e250c9bed56 (patch)
tree45ad95be7bec2592e379c052a044db12b6083dac
parent37989eb47e1ce58eb42bcc50b2abc2dd962ef076 (diff)
downloadrvnit-27132b5b5a769d90d3e98289ef8d5e250c9bed56.tar.gz
rvnit-27132b5b5a769d90d3e98289ef8d5e250c9bed56.tar.xz
rvnit-27132b5b5a769d90d3e98289ef8d5e250c9bed56.zip
fix deadlock
-rw-r--r--rvnit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rvnit.c b/rvnit.c
index 9afd3f7..a372add 100644
--- a/rvnit.c
+++ b/rvnit.c
@@ -802,6 +802,7 @@ main(int argc, char *argv[])
 						LOG("no error handler, going on");
 					} if (r > 0) {
 						LOG("fatal error, shutting down at level=%d", level);
+						pthread_mutex_unlock(&services_lock);
 						goto fatal;
 					}
 				}