svghmi/svghmi.py
branchwxPython4
changeset 3665 db7e4952b64f
parent 3657 e0d6f5f0dcc2
parent 3662 364f2409eeda
child 3688 c2992796a859
equal deleted inserted replaced
3660:0e41dbe6ddcd 3665:db7e4952b64f
   655 
   655 
   656 def svghmi_{location}_watchdog_trigger():
   656 def svghmi_{location}_watchdog_trigger():
   657     global browser_proc
   657     global browser_proc
   658     restart_proc = {svghmi_cmds[Watchdog]}
   658     restart_proc = {svghmi_cmds[Watchdog]}
   659     waitpid_timeout(restart_proc, "SVGHMI watchdog triggered command")
   659     waitpid_timeout(restart_proc, "SVGHMI watchdog triggered command")
       
   660     stop_proc = {svghmi_cmds[Stop]}
       
   661     waitpid_timeout(stop_proc, "SVGHMI stop command")
   660     waitpid_timeout(browser_proc, "SVGHMI browser process")
   662     waitpid_timeout(browser_proc, "SVGHMI browser process")
   661     browser_proc = None
   663     browser_proc = {svghmi_cmds[Start]}
   662 
   664 
   663 max_svghmi_sessions = {maxConnections_total}
   665 max_svghmi_sessions = {maxConnections_total}
   664 
   666 
   665 def _runtime_{location}_svghmi_start():
   667 def _runtime_{location}_svghmi_start():
   666     global svghmi_watchdog, svghmi_servers, browser_proc
   668     global svghmi_watchdog, svghmi_servers, browser_proc