From 755b093f0c8e2ea7e3df6a6d146df595631e2140 Mon Sep 17 00:00:00 2001 From: Akashdeep Dhar Date: Mar 17 2021 05:48:10 +0000 Subject: Added mandatory one second sleep on main process --- diff --git a/falc.py b/falc.py index ce7d0ca..1acb985 100644 --- a/falc.py +++ b/falc.py @@ -22,6 +22,7 @@ import json from multiprocessing import Process from secrets import choice +from time import sleep import click import falcon @@ -198,6 +199,9 @@ def mainfunc(portdata, sockport, netprotc, duration, recsqant, unixsock): redsobjc = RedisDatastoreServerSetup(6379, False) rediserv = Process(target=redsobjc.execute_redis_server_process) rediserv.start() + # Including mandatory sleep defaulted to 1 second for the Redis process to get started + # Might need some more time in slower devices + sleep(1) # Start the termsocket server as a subprocess sockproc = Process(target=mainterm, args=(sockport,)) sockproc.start()