Python without a tty
Gregory Ewing
greg.ewing at canterbury.ac.nz
Mon Oct 3 05:04:26 EDT 2011
Hegedüs wrote:
> If you fork() your process, then it will also loose the tty...
Um, no, fork() doesn't do that, as far as I know.
> os.setsid()
*This* is what's losing the tty. According to the Fine Man Page:
DESCRIPTION
The setsid function creates a new session. The calling process is the
session leader of the new session, is the process group leader of a new
process group and has no controlling terminal.
^^^^^^^^^^^^^^^^^^^^^^^^^^^
--
Greg
More information about the Python-list
mailing list