summaryrefslogtreecommitdiffstats
path: root/src/firejail/join.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/join.c')
-rw-r--r--src/firejail/join.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/firejail/join.c b/src/firejail/join.c
index 4cd315d90..21bb56e9d 100644
--- a/src/firejail/join.c
+++ b/src/firejail/join.c
@@ -202,10 +202,6 @@ void join(pid_t pid, const char *homedir, int argc, char **argv, int index) {
202 // if the pid is that of a firejail process, use the pid of the first child process 202 // if the pid is that of a firejail process, use the pid of the first child process
203 char *comm = pid_proc_comm(pid); 203 char *comm = pid_proc_comm(pid);
204 if (comm) { 204 if (comm) {
205 // remove \n
206 char *ptr = strchr(comm, '\n');
207 if (ptr)
208 *ptr = '\0';
209 if (strcmp(comm, "firejail") == 0) { 205 if (strcmp(comm, "firejail") == 0) {
210 pid_t child; 206 pid_t child;
211 if (find_child(pid, &child) == 0) { 207 if (find_child(pid, &child) == 0) {