aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-03-14 17:28:38 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2017-03-14 17:28:38 -0400
commite6ab81728738af93f406be10dad8ed3e14c6d1fe (patch)
tree13f11a2d64d1d356f041a6cf9623fe97b2768a1d /src
parentadded support to enable/disable tmpfs mounting on top of ~/.cache directory (diff)
downloadfirejail-e6ab81728738af93f406be10dad8ed3e14c6d1fe.tar.gz
firejail-e6ab81728738af93f406be10dad8ed3e14c6d1fe.tar.zst
firejail-e6ab81728738af93f406be10dad8ed3e14c6d1fe.zip
increased delay to 1 second in pid monitoring function for joined processes
Diffstat (limited to 'src')
-rw-r--r--src/firejail/sandbox.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c
index faa641d13..f26f8b06a 100644
--- a/src/firejail/sandbox.c
+++ b/src/firejail/sandbox.c
@@ -208,6 +208,11 @@ static int monitor_application(pid_t app_pid) {
208 while(rv != monitored_pid); 208 while(rv != monitored_pid);
209 if (arg_debug) 209 if (arg_debug)
210 printf("Sandbox monitor: waitpid %u retval %d status %d\n", monitored_pid, rv, status); 210 printf("Sandbox monitor: waitpid %u retval %d status %d\n", monitored_pid, rv, status);
211 if (rv == -1) { // we can get here if we have processes joining the sandbox (ECHILD)
212 if (arg_debug)
213 perror("waitpid");
214 sleep(1);
215 }
211 216
212 // if /proc is not remounted, we cannot check /proc directory, 217 // if /proc is not remounted, we cannot check /proc directory,
213 // for now we just get out of here 218 // for now we just get out of here