Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/imgact_elf.c
Show First 20 Lines • Show All 1,699 Lines • ▼ Show 20 Lines | #ifdef RACCT | ||||
} | } | ||||
#endif | #endif | ||||
if (coresize >= limit) { | if (coresize >= limit) { | ||||
error = EFAULT; | error = EFAULT; | ||||
goto done; | goto done; | ||||
} | } | ||||
/* Create a compression stream if necessary. */ | /* Create a compression stream if necessary. */ | ||||
if (compress_user_cores != 0) { | if (compress_user_cores != 0 && !(flags & SVC_NOCOMPRESS)) { | ||||
params.comp = compressor_init(core_compressed_write, | params.comp = compressor_init(core_compressed_write, | ||||
compress_user_cores, CORE_BUF_SIZE, | compress_user_cores, CORE_BUF_SIZE, | ||||
compress_user_cores_level, ¶ms); | compress_user_cores_level, ¶ms); | ||||
if (params.comp == NULL) { | if (params.comp == NULL) { | ||||
error = EFAULT; | error = EFAULT; | ||||
goto done; | goto done; | ||||
} | } | ||||
tmpbuf = malloc(CORE_BUF_SIZE, M_TEMP, M_WAITOK | M_ZERO); | tmpbuf = malloc(CORE_BUF_SIZE, M_TEMP, M_WAITOK | M_ZERO); | ||||
▲ Show 20 Lines • Show All 1,126 Lines • Show Last 20 Lines |