IOError: [Errno 4] Interrupted function call PythonService.exe
<p>I am running a python script as windows background service with the help of pywin32 API that provides PythonService.exe which run my script.</p>

<p>It continuously handles requests and responds back. Once I did not get response hence I checked weather the service is stopped ? I found the service is stopped and the system event log I found is :</p>

<pre><code>**Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\win32\lib\win32serviceutil.py", line 806, in SvcRun
    self.SvcDoRun()
  File "\..\..\MyServices.py", line 128, in SvcDoRun
    self.main()
  File "\..\..\MyServices.py", line 141, in main
    execfile('C:\Python27\Lib\site-packages\MyPackage\main.py')
  File "C:\Python27\Lib\site-packages\MyPackage\main.py", line 26, in &lt;module&gt;
    time.sleep(1)
IOError: (4, 'Interrupted function call') 
%2: %3**
</code></pre>

<p>I went through some of the blogs and found that this error occurs when a SIGBREAK signal is provided to process, but I am not able to reproduce the same error as myscript is running in service. </p>

<p>Does anyone knows the cause of this ERROR and how can I reproduce it in service ??</p>