Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
Fix fork-bomb when py2exe is used
Browse files Browse the repository at this point in the history
reinvokePerSourceFile executes clcache.exe clcache [flags] source

clcache argument here is in turn detected as a source, and it reinvokes
itself endlessly
  • Loading branch information
orgads committed Feb 19, 2014
1 parent f40d32d commit 80ea5b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,9 @@ def reinvokePerSourceFile(cmdLine, sourceFiles):
commands = []
for sourceFile in sourceFiles:
# The child command consists of clcache.py ...
newCmdLine = [sys.executable, sys.argv[0]]
newCmdLine = [sys.executable]
if not hasattr(sys, "frozen"):
newCmdLine.append(sys.argv[0])

for arg in cmdLine:
# and the current source file ...
Expand Down

0 comments on commit 80ea5b6

Please sign in to comment.