setsid
run a program in a new session
- Provided by: util-linux (Version: 2.34-0.1ubuntu9.6)
- Report a bug
run a program in a new session
setsid [options] program [arguments]
setsid runs a program in a new session. The command calls fork(2) if already a process group leader. Otherwise, it executes a program in the current process. This default behavior is possible to override by the --fork option.
Rick Sladkey <jrs@world.std.com>
The setsid command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/.