ed 30e602e5e0 MFC r202500:
Fix a regression that was introduced in r191882.

  I changed login_tty() to only work when the application is not a session
  leader yet. This works fine for applications in the base system, but it
  turns out various applications call this function after daemonizing,
  which means they already use their own session.

  If setsid() fails, just call tcsetsid() on the current session.
  tcsetsid() will already perform proper security checks.

Reported by:	Oliver Lehmann
2010-01-24 14:30:57 +00:00
..
2009-12-18 20:05:10 +00:00
2007-09-28 15:31:44 +00:00
2007-09-28 15:31:44 +00:00
2010-01-24 14:30:57 +00:00
2008-10-17 21:21:14 +00:00
2009-06-06 17:34:49 +00:00
2008-11-04 13:50:50 +00:00
2009-12-17 18:56:52 +00:00
2008-11-25 02:15:09 +00:00