diff options
Diffstat (limited to 'dbutil.c')
-rw-r--r-- | dbutil.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -693,3 +693,9 @@ void setnonblocking(int fd) { } TRACE(("leave setnonblocking")) } + +void disallow_core() { + struct rlimit lim; + lim.rlim_cur = lim.rlim_max = 0; + setrlimit(RLIMIT_CORE, &lim); +} |