r2 - 07 Jun 2005 - 13:55:07 - JimMcQuillanYou are here: TWiki >  Ltsp Web  >  ManIndex > Startsess

Startsess

This Startsess program was written to invoke a shell for an LTSP workstation.

It is needed, because we found that if you spawn a shell directly from /sbin/init, it won't handle the Ctrl-C key properly. In fact, it won't handle the following signals:

SIGINT, SIGQUIT or SIGTSTP.

In the kernel, there is a file called n_tty.c, which is the part of the tty driver that handles those signals. If the Process Group Id is <= 0, then it won't pass those signals on to the process that is running.

So, the Startsess program takes care of creating a new session, and assigning a Process Group ID to it. it then execs the shell. Actually, it will exec whatever you pass to it on the command line.

-- NickTaylor - 07 Jun 2005

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
Ltsp.Startsess moved from Ltsp.startsess on 07 Jun 2005 - 13:54 by JimMcQuillan - put it back
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback