Mercurial > dropbear
comparison dbutil.c @ 425:1afa503e33f5
Disable core dumps
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 12 Feb 2007 10:43:44 +0000 |
parents | b895f91c2ee6 |
children | c216212001fc |
comparison
equal
deleted
inserted
replaced
420:7f010e3b1802 | 425:1afa503e33f5 |
---|---|
691 dropbear_exit("Couldn't set nonblocking"); | 691 dropbear_exit("Couldn't set nonblocking"); |
692 } | 692 } |
693 } | 693 } |
694 TRACE(("leave setnonblocking")) | 694 TRACE(("leave setnonblocking")) |
695 } | 695 } |
696 | |
697 void disallow_core() { | |
698 struct rlimit lim; | |
699 lim.rlim_cur = lim.rlim_max = 0; | |
700 setrlimit(RLIMIT_CORE, &lim); | |
701 } |