From: Gurucharan Shetty Date: Mon, 11 Mar 2013 20:07:11 +0000 (-0700) Subject: ovs-ctl.in: Set hard limit for core files created. X-Git-Tag: sliver-openvswitch-1.10.90-1~10^2~83 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a5d873f40af3b8b6faeaa050a551d42a809b8818;p=sliver-openvswitch.git ovs-ctl.in: Set hard limit for core files created. Currently we set a soft limit while defining the maximum size of core files. If there is already a hard limit set that is lesser than the soft limit we are setting, it will fail. Since our startup scripts start with root permissions, it looks fine to set the hard limit directly instead. Reported-by: Dan Wendlandt Signed-off-by: Gurucharan Shetty --- diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in index a7b88eab8..6bad187cd 100755 --- a/utilities/ovs-ctl.in +++ b/utilities/ovs-ctl.in @@ -157,7 +157,7 @@ set_system_ids () { check_force_cores () { if test X"$FORCE_COREFILES" = Xyes; then - ulimit -Sc 67108864 + ulimit -c 67108864 fi }