aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar startx2017 <vradu.startx@yandex.com>2019-06-03 11:14:30 -0400
committerLibravatar startx2017 <vradu.startx@yandex.com>2019-06-03 11:14:30 -0400
commitfb0591d7d358d60bfebe7448c24440557fee3857 (patch)
tree6fe3f397226fa6490ed0e1759e1e3a9c68116261
parentmerge: nodbus-enhancements (laomaiwend, May 17) (diff)
downloadfirejail-fb0591d7d358d60bfebe7448c24440557fee3857.tar.gz
firejail-fb0591d7d358d60bfebe7448c24440557fee3857.tar.zst
firejail-fb0591d7d358d60bfebe7448c24440557fee3857.zip
fix firemon reporting for processes started with --join
-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 6124310b1..35b7b3026 100644
--- a/src/firemon/firemon.c
+++ b/src/firemon/firemon.c
@@ -81,7 +81,9 @@ int find_child(int id) {
81 return i; 81 return i;
82 } 82 }
83 83
84 return -1; 84 // if a second child is not found, return the first child pid
85 // this happens for processes sandboxed with --join
86 return first_child;
85} 87}
86 88
87// sleep and wait for a key to be pressed 89// sleep and wait for a key to be pressed