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
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to