summaryrefslogtreecommitdiffhomepage
path: root/src/child.c
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-15 22:32:25 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-15 22:32:42 +0100
commit372d7ff8241888bc3895182b39497fa23381b7e7 (patch)
treeba9924ae6095404108adac691a60f082b175faf8 /src/child.c
parent2f3a3828accfc6fca0e6f35e1bf28bace7f5851a (diff)
shutdown: free children from right place
Diffstat (limited to 'src/child.c')
-rw-r--r--src/child.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/child.c b/src/child.c
index 9d59d20..3b1800f 100644
--- a/src/child.c
+++ b/src/child.c
@@ -245,6 +245,10 @@ void child_kill_children (int sig)
);
}
+void child_free_children(void) {
+ sblist_free(childs);
+ childs = 0;
+}
/**
* Listen on the various configured interfaces