coredump: Don't dump when MCK_RLIMIT_CORE is zero
Fujitsu: POSTK_DEBUG_ARCH_DEP_67 Change-Id: Ic85c793b052cde9d7fa4fe510c5daee303d370c4
This commit is contained in:
committed by
Masamichi Takagi
parent
8c33c92720
commit
57258e7f59
@@ -977,11 +977,9 @@ void coredump(struct thread *thread, void *regs)
|
|||||||
struct coretable *coretable;
|
struct coretable *coretable;
|
||||||
int chunks;
|
int chunks;
|
||||||
|
|
||||||
#ifdef POSTK_DEBUG_ARCH_DEP_67 /* use limit corefile size. (temporarily fix.) */
|
|
||||||
if (thread->proc->rlimit[MCK_RLIMIT_CORE].rlim_cur == 0) {
|
if (thread->proc->rlimit[MCK_RLIMIT_CORE].rlim_cur == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif /* POSTK_DEBUG_ARCH_DEP_67 */
|
|
||||||
|
|
||||||
#ifndef POSTK_DEBUG_ARCH_DEP_18
|
#ifndef POSTK_DEBUG_ARCH_DEP_18
|
||||||
ret = gencore(thread, regs, &coretable, &chunks);
|
ret = gencore(thread, regs, &coretable, &chunks);
|
||||||
|
|||||||
Reference in New Issue
Block a user