I’ve tried man(3) setsid, but it only explains how to use it, I don’t quiet understand when is setsid useful?
I’ve tried man(3) setsid , but it only explains how to use it, I
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A session is a set of processes which shares a controlling terminal. setsid is useful when you want to start a new session, because you have started to be connected to a new terminal — such as when starting a shell inside a terminal emulator — or you want a daemon (which you don’t want to be associated with a controlling terminal).
The best explanation I know of these aspect is in R.W. Stevens Advanced programming in the Unix environment.