* unkillable process during core dump
@ 2008-05-06 4:58 Alexander V. Lukyanov
0 siblings, 0 replies; only message in thread
From: Alexander V. Lukyanov @ 2008-05-06 4:58 UTC (permalink / raw)
To: linux-kernel
Hello!
I have noticed that a process doing a core dump is unkillable.
Now imagine that there are many such processes and they are large.
An example:
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
int main() {
calloc(1000000000,1);
signal(SIGCLD,SIG_IGN);
while(1) {
if(fork()==0) {
raise(SIGABRT);
_exit(0);
}
sleep(10);
}
return 0;
}
Try with large enough ulimit -c and with sysctl kernel.core_uses_pid=0.
You kill the parent, but the children are still doing their core dumps.
--
Alexander.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-06 5:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-06 4:58 unkillable process during core dump Alexander V. Lukyanov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox