[ 本帖最后由 Paranoia 于 2005-10-31 19:45 编辑 ]作者: win_hate 时间: 2005-05-04 12:31 标题: APUE p194 程序9-1 If you start your program in the foreground, then fork, after the parent exitted, shell would regard your program is done. So the subprocess(if it had not terminated) will be turnned into backgroung automatically.