0

I have previously checked these topics about signal package problem in (right way to run some code with timeout in Python), (Python signal don't work even on Cygwin?), and (Why is signal.SIGALRM not working in Python on windows?). But I could not find a right substitution for my application.

In the beginning of my code, there is a line as follow:

signal.signal(signal.SIGALRM, timeout_handler)

In between I have to add some codes like:

signal.alarm(10)

Can you suggest a replacement in order to no to get (AttributeError: module 'signal' has no attribute 'SIGALRM') for WINDOWS? It works fine with Unix.

Thank you in advance

Nic3500
  • 6,706
  • 10
  • 30
  • 37

0 Answers0