If the parent of a process dies, the PPID becomes 1. You check for the PPID being "1" won't eliminate the problem, your users will just get cleverer. -Ron