Skip to content

Commit e6d4f8e

Browse files
committed
WHAT THE?!?
1 parent 2617349 commit e6d4f8e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎v3/pg_logger.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,12 @@ def _runscript(self, script_str):
703703

704704
# protect against unauthorized filesystem accesses ...
705705
resource.setrlimit(resource.RLIMIT_NOFILE, (0, 0)) # no opened files allowed
706-
resource.setrlimit(resource.RLIMIT_FSIZE, (0, 0)) # (redundancy for paranoia)
706+
707+
# VERY WEIRD. If you activate this resource limitation, it
708+
# ends up generating an EMPTY trace for the following program:
709+
# "x = 0\nfor i in range(10):\n x += 1\n print x\n x += 1\n"
710+
# (at least on my Webfaction hosting with Python 2.7)
711+
#resource.setrlimit(resource.RLIMIT_FSIZE, (0, 0)) # (redundancy for paranoia)
707712

708713
self.run(script_str, user_globals, user_globals)
709714
# sys.exit ...

0 commit comments

Comments
 (0)