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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/firejail/join.c b/src/firejail/join.c
index fa19243b8..a4b16ff8d 100644
--- a/src/firejail/join.c
+++ b/src/firejail/join.c
@@ -176,7 +176,7 @@ static void extract_user_namespace(pid_t pid) {
176void join(pid_t pid, int argc, char **argv, int index) { 176void join(pid_t pid, int argc, char **argv, int index) {
177 EUID_ASSERT(); 177 EUID_ASSERT();
178 char *homedir = cfg.homedir; 178 char *homedir = cfg.homedir;
179 179
180 extract_command(argc, argv, index); 180 extract_command(argc, argv, index);
181 signal (SIGTERM, signal_handler); 181 signal (SIGTERM, signal_handler);
182 182
@@ -189,7 +189,8 @@ void join(pid_t pid, int argc, char **argv, int index) {
189 pid_t child; 189 pid_t child;
190 if (find_child(pid, &child) == 0) { 190 if (find_child(pid, &child) == 0) {
191 pid = child; 191 pid = child;
192 printf("Switching to pid %u, the first child process inside the sandbox\n", (unsigned) pid); 192 if (!arg_quiet)
193 printf("Switching to pid %u, the first child process inside the sandbox\n", (unsigned) pid);
193 } 194 }
194 } 195 }
195 free(comm); 196 free(comm);