int System.setsid()
Set a new process session ID for the current process, and return it.
getpid , setpgrp , getsid