forked from OSchip/llvm-project
improve support for minix, PR6280, patch by
Kees van Reeuwijk! llvm-svn: 95946
This commit is contained in:
parent
be5557e86b
commit
62f50dad8d
|
@ -126,7 +126,7 @@ static void TimeOutHandler(int Sig) {
|
|||
|
||||
static void SetMemoryLimits (unsigned size)
|
||||
{
|
||||
#if HAVE_SYS_RESOURCE_H
|
||||
#if HAVE_SYS_RESOURCE_H && HAVE_GETRLIMIT && HAVE_SETRLIMIT
|
||||
struct rlimit r;
|
||||
__typeof__ (r.rlim_cur) limit = (__typeof__ (r.rlim_cur)) (size) * 1048576;
|
||||
|
||||
|
|
|
@ -52,7 +52,16 @@ static const int *const IntSigsEnd =
|
|||
// KillSigs - Signals that are synchronous with the program that will cause it
|
||||
// to die.
|
||||
static const int KillSigs[] = {
|
||||
SIGILL, SIGTRAP, SIGABRT, SIGFPE, SIGBUS, SIGSEGV, SIGSYS, SIGXCPU, SIGXFSZ
|
||||
SIGILL, SIGTRAP, SIGABRT, SIGFPE, SIGBUS, SIGSEGV
|
||||
#ifdef SIGSYS
|
||||
, SIGSYS
|
||||
#endif
|
||||
#ifdef SIGXCPU
|
||||
, SIGXCPU
|
||||
#endif
|
||||
#ifdef SIGEMT
|
||||
, SIGXFSZ
|
||||
#endif
|
||||
#ifdef SIGEMT
|
||||
, SIGEMT
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue