> >Does that not mean that a parent will stay alive until all children have >finished ? >
No,the parent should get exited when it finish its session,in spite of childs are still running or not. When the parent exit,the childs should be take-overed by system init process,whose process ID is typically '1'. for example,when you execute: $ perl -e 'sleep 3 unless fork' under unix shell,then execute 'ps -elf' system command,you could see: F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD 1 S coremail 13564 1 0 75 0 - 1393 schedu 21:44 pts/0 00:00:00 perl -e sleep 3 unless fork The process's pid is 1 really.It has been take-overed by system init process. Hope it helps. -- Jeff Pang NetEase AntiSpam Team http://corp.netease.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>