setsid - is used to run a program in a new session
To show the help options
$ setsid -h
To set the controlling terminal to the current one
$ setsid -c ./sample.sh
To Execute a program even after log out
$ setsid ./example-script.sh
To make wait for the execution of the program to end and return
the exit value of this program as the return value of setsid
$ setsid -w ./sample.sh