WEB setsid: Creating a Session and Setting the Process Group ID
Synopsis
#include <unistd.h>
pid_t setsid(void);
Description
setsid
runs a program in a new session. The command calls fork(2)
if it is not already a process group leader. setsid
creates a new session if the calling process is not a process group leader. The calling process becomes the leader of the new session.
Komentar