aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/firemon/firemon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/firemon/firemon.c b/src/firemon/firemon.c
index e5f1b6f9a..b3c435d9e 100644
--- a/src/firemon/firemon.c
+++ b/src/firemon/firemon.c
@@ -83,7 +83,9 @@ int find_child(int id) {
83 return i; 83 return i;
84 } 84 }
85 85
86 return -1; 86 // if a second child is not found, return the first child pid
87 // this happens for processes sandboxed with --join
88 return first_child;
87} 89}
88 90
89// sleep and wait for a key to be pressed 91// sleep and wait for a key to be pressed