X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Robots%2Fbkmk_rforking.py;h=c5bbb6265f73e6b298e7a475fc0cf7fe0eb698f7;hb=9faa13f6f8199790cf01533e857c593520559649;hp=6250af91603cfb8e6125b049e900f33c3be0e9ef;hpb=4255ead7de9ed5069f94b90cb134a077387d43c1;p=bookmarks_db.git diff --git a/Robots/bkmk_rforking.py b/Robots/bkmk_rforking.py index 6250af9..c5bbb62 100644 --- a/Robots/bkmk_rforking.py +++ b/Robots/bkmk_rforking.py @@ -28,6 +28,7 @@ sys.stderr = open("err.log", 'a') check_subp = None subp_pipe = None + def stop_subp(log): global check_subp, subp_pipe if check_subp: @@ -35,6 +36,7 @@ def stop_subp(log): del check_subp del subp_pipe + def restart_subp(log): global check_subp, subp_pipe stop_subp(log) @@ -46,6 +48,7 @@ def restart_subp(log): _set_subproc = True + class robot_forking(Robot): subproc = 'urllib2' # Default subprocess