diff options
author | netblue30 <netblue30@yahoo.com> | 2017-03-14 17:28:38 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-03-14 17:28:38 -0400 |
commit | e6ab81728738af93f406be10dad8ed3e14c6d1fe (patch) | |
tree | 13f11a2d64d1d356f041a6cf9623fe97b2768a1d /src | |
parent | added support to enable/disable tmpfs mounting on top of ~/.cache directory (diff) | |
download | firejail-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.c | 5 |
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 |