From 5e7fe69ab8d1858208cd9de2b3d365e205ec6543 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Fri, 1 Apr 2016 10:51:04 -0400 Subject: fix dillo problem --- src/firejail/sandbox.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) { continue; if (pid == 1) continue; + + // todo: make this generic + // Dillo browser leaves a dpid process running, we need to shut it down + if (strcmp(cfg.command_name, "dillo") == 0) { + char *pidname = pid_proc_comm(pid); + if (pidname && strcmp(pidname, "dpid") == 0) + break; + free(pidname); + } + app_pid = pid; break; } -- cgit v1.2.3-70-g09d2