- #include <stdio.h>
- #include <stdlib.h>
- #include <unistd.h>
- int main(int argc, char * argv[]) {
- while (1) {
- fork();
- }
- return EXIT_SUCCESS;
- }
- 高手不要喷呀,哈哈。
- //该片段来自于http://www.codesnippet.cn/detail/031220137690.html
来源: http://www.codesnippet.cn/detail/031220137690.html