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