阅读背景:

如果使用SIGSTOP停止子进程中的一个,则该进程在杀死父进程时死亡

来源:互联网 

My test code is

我的测试代码

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

int main() {
  int c = fork();
  if (c == 0) while(1);
  c = fork();
  if (c == 0) while(1);
  c = fork();
  if (c == 0) while(1);
  c = fork();
  if (c == 0) while(1);
  while(1);
}
#include <stdio.h>
#



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: