Skip to content

Commit

Permalink
Adding workaround since singal.pause() is missing in Windows.
Browse files Browse the repository at this point in the history
OpenRCE/sulley issue OpenRCE#49
  • Loading branch information
jtpereyda committed Jun 19, 2015
1 parent 1cefd1f commit 007edd3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sulley/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,13 @@ def error_handler (e, msg, target, sock=None):
# if fuzzing is not finished, web interface thread will catch it
if self.total_mutant_index == self.total_num_mutations:
import signal
while True:
signal.pause()
try:
while True:
signal.pause()
except AttributeError:
# signal.pause() is missing for Windows; wait 1ms and loop instead
while True:
time.sleep(1)


####################################################################################################################
Expand Down

0 comments on commit 007edd3

Please sign in to comment.