From: Yehor Velykozhon -X (yvelykoz - SOFTSERVE INC at Cisco) Date: Tue, 11 Jun 2024 08:26:29 +0000 (+0000) Subject: Pull request #4345: utils: remove duplication of definition X-Git-Tag: 3.3.0.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a11bfa31400fff23a6c7abadd80fcffbc7c3567;p=thirdparty%2Fsnort3.git Pull request #4345: utils: remove duplication of definition Merge in SNORT/snort3 from ~YVELYKOZ/snort3:compl_fix to master Squashed commit of the following: commit fa8992e8308a8ba6c759ac1ed355285a300923a6 Author: Yehor Velykozhon Date: Fri Jun 7 12:41:04 2024 +0300 utils: remove duplication of definition Definition is moved to src/main/process.cc. Thanks to xxxx81 for reporting the issue. --- diff --git a/src/utils/util.cc b/src/utils/util.cc index 4de7a6492..5175ebb0c 100644 --- a/src/utils/util.cc +++ b/src/utils/util.cc @@ -83,17 +83,6 @@ bool get_file_size(const std::string& path, size_t& size) return true; } -#if defined(NOCOREFILE) -void SetNoCores() -{ - struct rlimit rlim; - - getrlimit(RLIMIT_CORE, &rlim); - rlim.rlim_max = 0; - setrlimit(RLIMIT_CORE, &rlim); -} -#endif - namespace snort { const char* get_error(int errnum)