Skip to content

Commit

Permalink
Fix infinite loop on Windows C* 2.0 start
Browse files Browse the repository at this point in the history
Occurred when process start fails to write tmp file
  • Loading branch information
ptnapoleon committed Jan 28, 2015
1 parent 4e6eaf6 commit 1a4a9a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ccmlib/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1263,9 +1263,9 @@ def __clean_win_pid(self):
with open (self.get_path() + "/cassandra.pid", 'w') as pidfile:
found = True
pidfile.write(win_pid)
readEnd = common.now_ms()
else:
time.sleep(.001)
readEnd = common.now_ms()
if not found:
raise Exception('Node: %s Failed to find pid in ' +
self.get_path() +
Expand Down

0 comments on commit 1a4a9a1

Please sign in to comment.