summaryrefslogtreecommitdiffstats
path: root/lib/libutil/login_tty.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a regression that was introduced in r191882.ed2010-01-171-1/+1
| | | | | | | | | | | | | 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 MFC after: 1 week
* Add tcsetsid(3).ed2009-05-071-3/+7
| | | | | | | | | | | The entire world seems to use the non-standard TIOCSCTTY ioctl to make a TTY a controlling terminal of a session. Even though tcsetsid(3) is also non-standard, I think it's a lot better to use in our own source code, mainly because it's similar to tcsetpgrp(), tcgetpgrp() and tcgetsid(). I stole the idea from QNX. They do it the other way around; their TIOCSCTTY is just a wrapper around tcsetsid(). tcsetsid() then calls into an IPC framework.
* Remove California Regent's clause 3, per letterimp2007-01-091-4/+0
|
* ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.markm2003-10-181-2/+1
|
* Tidy up. Sort headers.markm2003-06-141-2/+2
|
* Add __FBSDID()s to libutildillon2001-09-301-3/+3
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Now take stdio.h out of files that don't require it.jkh1998-10-091-2/+1
|
* All these have to include stdio.h now.jkh1998-10-091-1/+2
|
* Protect the copyright comments from reformatting bysteve1997-08-131-0/+5
| | | | | | | indent and make this compile -Wall clean like the Makefile suggests that it should. :) Pointed out by: Bruce Evans <bde@zeta.org.au>
* Bump libutil revision after recent addition of setproctitle().peter1996-01-011-0/+5
| | | | | | | | Install (optional) libutil.h with prototypes for the functions and document this in the man page. minor cleanups to the various routines, include the prototype file, declare return codes etc.
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+53
OpenPOWER on IntegriCloud