Fix/ci kontin no internet vaatimus #34

Merged
niko merged 9 commits from fix/ci-kontin-no-internet-vaatimus into main 2026-06-20 14:36:42 +03:00
2 changed files with 7 additions and 0 deletions
Showing only changes of commit b5faebcaae - Show all commits
+7
View File
@@ -1,6 +1,13 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import http.server, json, sys, os, threading import http.server, json, sys, os, threading
# Daemonize: detach from parent process group
if os.fork() > 0:
sys.exit(0)
os.setsid()
if os.fork() > 0:
sys.exit(0)
PORT = int(sys.argv[1]) PORT = int(sys.argv[1])
CONFIG = sys.argv[2] CONFIG = sys.argv[2]
REQ_FILE = sys.argv[3] REQ_FILE = sys.argv[3]