


SETSID(8V)            MAINTENANCE COMMANDS             SETSID(8V)



NAME
     setsid - set process to session leader

SYNOPSIS
     setsid [ -b ] _c_o_m_m_a_n_d [ _a_r_g_u_m_e_n_t_s ]

DESCRIPTION
     setsid  executes  _c_o_m_m_a_n_d  after  altering   the   execution
     environment  such  that  the  next  non-controlling terminal
     opened will be assigned as _c_o_m_m_a_n_d's controlling terminal.

OPTIONS
     -b   Alteration to the execution environment persists across
          calls to fork(2V).

     The -b option puts the process into a  state  that  is  sup-
     ported  in SunOS Release 4.1 solely as a migration aid; this
     option will not be supported in future releases.

EXAMPLES
     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
          #!/bin/sh
          /usr/etc/setsid -b /usr/sunlink/dni/.dnilogind "$@"
          ^D
          example%  chmod +x dnilogind

SEE ALSO
     setsid(2V)

     _I_E_E_E _S_t_d _1_0_0_3._1-_1_9_8_8


















Sun Release 4.1   Last change: 20 January 1990                  1



