]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4345: utils: remove duplication of definition
authorYehor Velykozhon -X (yvelykoz - SOFTSERVE INC at Cisco) <yvelykoz@cisco.com>
Tue, 11 Jun 2024 08:26:29 +0000 (08:26 +0000)
committerOleksii Shumeiko -X (oshumeik - SOFTSERVE INC at Cisco) <oshumeik@cisco.com>
Tue, 11 Jun 2024 08:26:29 +0000 (08:26 +0000)
Merge in SNORT/snort3 from ~YVELYKOZ/snort3:compl_fix to master

Squashed commit of the following:

commit fa8992e8308a8ba6c759ac1ed355285a300923a6
Author: Yehor Velykozhon <yvelykoz@cisco.com>
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.

src/utils/util.cc

index 4de7a6492e3a5c7b1172b6588aaafb3236455649..5175ebb0c6e79b026760720c6574a31c96f94653 100644 (file)
@@ -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)