aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/join.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/join.c')
-rw-r--r--src/firejail/join.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/firejail/join.c b/src/firejail/join.c
index 1494c782f..531f8c06a 100644
--- a/src/firejail/join.c
+++ b/src/firejail/join.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2014-2019 Firejail Authors 2 * Copyright (C) 2014-2020 Firejail Authors
3 * 3 *
4 * This file is part of firejail project 4 * This file is part of firejail project
5 * 5 *
@@ -322,8 +322,8 @@ bool is_ready_for_join(const pid_t pid) {
322void check_join_permission(pid_t pid) { 322void check_join_permission(pid_t pid) {
323 // check if pid belongs to a fully set up firejail sandbox 323 // check if pid belongs to a fully set up firejail sandbox
324 unsigned long i; 324 unsigned long i;
325 for (i = 0; is_ready_for_join(pid) == false; i += SNOOZE) { // give sandbox some time to start up 325 for (i = SNOOZE; is_ready_for_join(pid) == false; i += SNOOZE) { // give sandbox some time to start up
326 if (i >= join_timeout) { 326 if (i > join_timeout) {
327 fprintf(stderr, "Error: no valid sandbox\n"); 327 fprintf(stderr, "Error: no valid sandbox\n");
328 exit(1); 328 exit(1);
329 } 329 }
@@ -531,6 +531,7 @@ void join(pid_t pid, int argc, char **argv, int index) {
531 531
532 // it will never get here!!! 532 // it will never get here!!!
533 } 533 }
534 EUID_USER();
534 535
535 int status = 0; 536 int status = 0;
536 //***************************** 537 //*****************************