http://www.cnblogs.com/Anker/p/3271773.html 我书上看到跟网络上看到范例都类似 在子行程sleep 变成 孤儿行程, 之后由 init pid = 1 去接管 https://gist.github.com/anonymous/f17087ea7aeaa7077ebac5ebd4768528 // 程式码 可是输出结果子行程sleep 5秒后是父行程不是 init I am father process. I am the child process. pid: 23665 ppid:23664 I will sleep five seconds. father process is exited. pid: 23665 ppid:3829 // 这边是 3829 不是 init 的 1 child process is exited. 后来我查一下 ps aux , 3829 是 /sbin/upstart