Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Sep 27, 2016
1 parent 8ad0743 commit 46dc2b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/firejail/join.c
Expand Up @@ -30,6 +30,12 @@ static uint64_t caps = 0;
static int apply_seccomp = 0;
#define BUFLEN 4096

static void signal_handler(int sig){
flush_stdin();

exit(sig);
}

static void extract_command(int argc, char **argv, int index) {
EUID_ASSERT();
if (index >= argc)
Expand Down Expand Up @@ -187,6 +193,7 @@ void join(pid_t pid, int argc, char **argv, int index) {
char *homedir = cfg.homedir;

extract_command(argc, argv, index);
signal (SIGTERM, signal_handler);

// if the pid is that of a firejail process, use the pid of the first child process
EUID_ROOT();
Expand Down

0 comments on commit 46dc2b3

Please sign in to comment.