1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

Set RLIMIT_CORE to zero. For some reason the core file size is huge.

Ticket: CM-3346
Reviewed By:
Testing Done: ifupdown2 sanity

I dont see a real reason for a core file to debug ifupdown2 problems
currently. Will re-enable core file generation when i root cause the
issue.
This commit is contained in:
Roopa Prabhu
2014-10-13 09:55:21 -07:00
parent e74d01e1b2
commit 61636dcc1c

View File

@@ -13,6 +13,7 @@ import argparse
import ConfigParser
import StringIO
import logging
import resource
from ifupdown.ifupdownmain import *
from ifupdown.utils import *
@@ -422,7 +423,7 @@ def main(argv):
if __name__ == "__main__":
# required during boot
os.putenv('PATH', ENVPATH)
resource.setrlimit(resource.RLIMIT_CORE, (0,0))
main(sys.argv)