Loading cccli/printer.py +4 −2 Original line number Diff line number Diff line Loading @@ -203,10 +203,12 @@ class Printer(object): '''Page data using PAGER''' binary = os.environ.get("CC_PAGER", os.environ.get("PAGER", "more")) if isinstance(data, basestring): p = subprocess.Popen(binary, stdin=subprocess.PIPE, shell=True) p = subprocess.Popen(binary, stdin=subprocess.PIPE, close_fds=True, shell=True) p.communicate(data) else: p = subprocess.Popen(binary, stdin=data, shell=True) p = subprocess.Popen(binary, stdin=data, close_fds=True, shell=True) p.wait() Loading Loading
cccli/printer.py +4 −2 Original line number Diff line number Diff line Loading @@ -203,10 +203,12 @@ class Printer(object): '''Page data using PAGER''' binary = os.environ.get("CC_PAGER", os.environ.get("PAGER", "more")) if isinstance(data, basestring): p = subprocess.Popen(binary, stdin=subprocess.PIPE, shell=True) p = subprocess.Popen(binary, stdin=subprocess.PIPE, close_fds=True, shell=True) p.communicate(data) else: p = subprocess.Popen(binary, stdin=data, shell=True) p = subprocess.Popen(binary, stdin=data, close_fds=True, shell=True) p.wait() Loading