]> 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 07:59:11 +0000 (07:59 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Thu, 9 Oct 2014 07:59:11 +0000 (07:59 +0000)
commita3032baf86c0c861afc7ab62016178d03cb5cf2b
tree3ce8351ecfa98f38091ad90f86b16e4806ca3166
parent468381b17aa6b2b63916bc2f5379809fc28f65c6
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)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@424875 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
contrib/scripts/safe_asterisk