diff --git a/embark/uploader/boundedexecutor.py b/embark/uploader/boundedexecutor.py index 1af34970..387395c6 100644 --- a/embark/uploader/boundedexecutor.py +++ b/embark/uploader/boundedexecutor.py @@ -75,7 +75,7 @@ def run_emba_cmd(cls, cmd, analysis_id=None, active_analyzer_dir=None): # The os.setsid() is passed in the argument preexec_fn so it's run after the fork() and before exec() to run the shell. # attached but synchronous with open(f"{settings.EMBA_LOG_ROOT}/{analysis_id}/emba_run.log", "w+", encoding="utf-8") as file: - proc = Popen(cmd, stdin=PIPE, stdout=file, stderr=file, shell=True) # nosec + proc = Popen(cmd, stdin=PIPE, stdout=file, stderr=file, shell=True, start_new_session=True) # nosec # Add proc to FirmwareAnalysis-Object analysis.pid = proc.pid analysis.save(update_fields=["pid"]) diff --git a/run-server.sh b/run-server.sh index 184ed113..f8452609 100755 --- a/run-server.sh +++ b/run-server.sh @@ -238,7 +238,6 @@ pipenv run ./manage.py runmodwsgi --user www-embark --group sudo \ --processes 4 --threads 4 \ --graceful-timeout 5 \ --log-level debug \ ---debug-mode \ --server-name embark.local "${WSGI_FLAGS[@]}" & # --ssl-certificate /var/www/conf/cert/embark.local --ssl-certificate-key-file /var/www/conf/cert/embark.local.key \ # --https-port "$HTTPS_PORT" &