refs #784 make Purgar() actually terminate the agent

pull/10/head
Natalia Serrano 2024-10-03 15:05:15 +02:00
parent 068e0cf633
commit 1e1974432e
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,8 @@
import base64
#import threading
#import time
import os
import signal
import subprocess
from pathlib import Path
from urllib.parse import unquote
@ -425,6 +427,7 @@ class ogAdmClientWorker (ogLiveWorker):
def process_Purgar (self, path, get_params, post_params, server):
logger.debug ('in process_Purgar, path "{}" get_params "{}" post_params "{}" server "{}"'.format (path, get_params, post_params, server))
os.kill (os.getpid(), signal.SIGTERM)
return {}
#exit (0) ## ogAdmClient.c:905