tty_ioctl.4: Note that 'arg' should be 0 in the usual case when using TIOCSCTTY

Reported-by: Liu Jiaming <storypku@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-11-12 16:47:41 +13:00
parent cb476d8850
commit 9ab0de3c43
1 changed files with 3 additions and 0 deletions

View File

@ -241,6 +241,9 @@ or
Make the given terminal the controlling terminal of the calling process.
The calling process must be a session leader and not have a
controlling terminal already.
For this case,
.I arg
should be specified as zero.
If this terminal is already the controlling terminal
of a different session group then the ioctl fails with