connect to a ttsession?
After some internal initialization, tt_open tries to find a ttsession. • tt_open checks whether the environment variable TT_SESSION is set. If this environment variable is set, it uses the value as the id of the ttsession. If this environment variable is not set, it checks to see if the DISPLAY environment variable is set. • If this environment variable is set, it uses the value as the id of the ttsession. • If this environment variable is not set, it checks to see if the TT_SESSION property on root X window (of the machine running the display) is set. In the event that none of these environment variables are set, it will start a ttsession itself. • tt_open ‘pings’ the ttsession to make sure it is active. • tt_open checks the environment variable TT_TOKEN to determine whether the client was started from a `start’ command for the ptype. Once the start ptype is determined, tt creates a procid. • tt_open creates a TCP/IP socket on the client side to which ttsession connects. Activity on t