__all__ = ['robot_forking']
-import sys, os
+import os
+import sys
try:
import cPickle as pickle
check_subp = None
subp_pipe = None
+
def stop_subp(log):
global check_subp, subp_pipe
if check_subp:
del check_subp
del subp_pipe
+
def restart_subp(log):
global check_subp, subp_pipe
stop_subp(log)
_set_subproc = True
+
class robot_forking(Robot):
subproc = 'urllib2' # Default subprocess