summaryrefslogtreecommitdiff
path: root/watchfrr
diff options
context:
space:
mode:
Diffstat (limited to 'watchfrr')
-rw-r--r--watchfrr/watchfrr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/watchfrr/watchfrr.c b/watchfrr/watchfrr.c
index c6e7505979..07a29ca6d5 100644
--- a/watchfrr/watchfrr.c
+++ b/watchfrr/watchfrr.c
@@ -314,6 +314,9 @@ static int restart_kill(struct thread *t_kill)
static struct restart_info *find_child(pid_t child)
{
struct daemon *dmn;
+ if (gs.restart.pid == child)
+ return &gs.restart;
+
for (dmn = gs.daemons; dmn; dmn = dmn->next) {
if (dmn->restart.pid == child)
return &dmn->restart;