setsid - set process to session leader
setsid [ -b ] command [ arguments ]
setsid executes command after altering the execution environment such
that the next non-controlling terminal opened will be assigned as com-
mand's controlling terminal.
-b Alteration to the execution environment persists across calls to
The -b option puts the process into a state that is supported in SunOS
Release 4.1 solely as a migration aid; this option will not be sup-
ported in future releases.
Components of two SunLink products, /usr/sunlink/dni/dnilogind (the
DECNET analog of rlogind(8C) and /usr/sunlink/x25/x29 (the OSI analog
of rlogind), are known to need this wrapper. Typical usage is:
example% cd /usr/sunlink/dni
example% mv dnilogind .dnilogind
example% cat >> dnilogind
/usr/etc/setsid -b /usr/sunlink/dni/.dnilogind "$@"
example% chmod +x dnilogind
IEEE Std 1003.1-1988
20 January 1990 SETSID(8V)