fork()返回值

  1)在父进程中,fork返回新创建子进程的进程ID;
  2)在子进程中,fork返回0;
  3)如果出现错误,fork返回一个负值;

posted @ 2014-08-08 17:55  阿刻  阅读(539)  评论(0编辑  收藏  举报