linux-os (Dick Johnson) wrote:
Yep....
#include <stdio.h>
#include <signal.h>
int main()
{
unsigned long i;
for(i = 0; ; i++)
{
switch(fork())
{
case 0: // kid
pause();
break;
case -1: // Failed
printf("%lu\n", i);
kill(0, SIGTERM);
exit(0);
default:
break;
}
}
return 0;
}
Shows a consistent 6140.
Doesn't work here. Without ulimit, I wasn't surprised
about the resulting OOM mess.
Problem was, it never stopped. I expected OOM to kill
this program, and quite possibly lots of other running programs
as well. What I got, was ever-rolling OOM messages
with stack traces inbetween.
2.6.18-rc4-mm1 never recovered and had to be killed by sysrq.
Helge Hafting
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]