]> git.ipfire.org Git - thirdparty/asterisk.git/commit
safe_asterisk: Don't automatically exceed MAXFILES value of 2^20.
authorWalter Doekes <walter+asterisk@wjd.nu>
Thu, 9 Oct 2014 08:07:27 +0000 (08:07 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Thu, 9 Oct 2014 08:07:27 +0000 (08:07 +0000)
commitbc69aa77744a57048dd5ee3feed1b5a304a27c3c
tree2b9a1f08c829edc73ac1b6d7ecb7a8b49c6448b1
parent0caedfa37eb1aab7a943cc7619d9af3108a6a591
safe_asterisk: Don't automatically exceed MAXFILES value of 2^20.

On systems with lots of RAM (e.g. 24GB) /proc/sys/fs/file-max divided
by two can exceed the per-process file limit of 2^20. This patch
ensures the value is capped.

(Patch cleaned up by me.)

ASTERISK-24011 #close
Reported by: Michael Myles
Patches:
  safe_asterisk-ulimit.diff uploaded by Michael Myles (License #6626)
........

Merged revisions 424875 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 424878 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@424879 65c4cc65-6c06-0410-ace0-fbb531ad65f3
contrib/scripts/safe_asterisk