Created
January 26, 2019 22:12
-
-
Save smirn0v/212113efb4c984fabb27d81486bab1e5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/resource.h> | |
// core dumps may be disallowed by parent of this process; change that | |
struct rlimit core_limits; | |
core_limits.rlim_cur = core_limits.rlim_max = RLIM_INFINITY; | |
setrlimit(RLIMIT_CORE, &core_limits); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment