aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/firejail/sandbox.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c
index c371f4c75..732ebf27e 100644
--- a/src/firejail/sandbox.c
+++ b/src/firejail/sandbox.c
@@ -163,6 +163,16 @@ static int monitor_application(pid_t app_pid) {
163 continue; 163 continue;
164 if (pid == 1) 164 if (pid == 1)
165 continue; 165 continue;
166
167 // todo: make this generic
168 // Dillo browser leaves a dpid process running, we need to shut it down
169 if (strcmp(cfg.command_name, "dillo") == 0) {
170 char *pidname = pid_proc_comm(pid);
171 if (pidname && strcmp(pidname, "dpid") == 0)
172 break;
173 free(pidname);
174 }
175
166 app_pid = pid; 176 app_pid = pid;
167 break; 177 break;
168 } 178 }