]> Sergey Matveev's repositories - public-inbox.git/commit
spawn: support RLIMIT_CPU, RLIMIT_DATA and RLIMIT_CORE
authorEric Wong <e@80x24.org>
Mon, 25 Feb 2019 05:14:10 +0000 (05:14 +0000)
committerEric Wong <e@80x24.org>
Thu, 4 Apr 2019 09:13:58 +0000 (09:13 +0000)
commit721368cd04bfbd03c0d9173fff633ae34f16409a
tree8b4f8fc9eb232c551f9f3455de8bb4aea0e35712
parent293c51d2c23ceb8b8018cf4bfa3deaf56f7753b2
spawn: support RLIMIT_CPU, RLIMIT_DATA and RLIMIT_CORE

We'll be spawning cgit and git-diff, which can take gigantic
amounts of CPU time and/or heap given the right (ermm... wrong)
input.  Limit the damage that large/expensive diffs can cause.
lib/PublicInbox/Spawn.pm
lib/PublicInbox/SpawnPP.pm
t/spawn.t