I have a Python script, which is running as a Windows Service. The script forks another process with:
with subprocess.Popen( args=[self.exec_path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) as proc:
which causes the following error:
OSError: [WinError 6] The handle is invalid
File "C:\Program Files (x86)\Python35-32\lib\subprocess.py", line 911, in __init__
File "C:\Program Files (x86)\Python35-32\lib\subprocess.py", line 1117, in _get_handles
GetStdHandle
should returnNULL
, notINVALID_HANDLE_VALUE
. – Calandra