|
NAMEtcsetsid —
set session ID associated with a controlling terminal
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/types.h>
#include <termios.h>
int
DESCRIPTIONThetcsetsid () function sets associates a session
identified by pid with a controlling terminal specified
by fd.
This implementation only allows the controlling terminal to be changed by the session leader itself. This implies that pid always has to be equal to the process ID. It is unsupported to associate with a terminal that already has an associated session. Conversely, it is also unsupported to associate to a terminal when the session is already associated with a different terminal. ERRORSIf an error occurs,tcsetsid () returns -1 and the global
variable errno is set to indicate the error, as follows:
SEE ALSOgetsid(2), setsid(2), tcgetpgrp(3), tcgetsid(3)HISTORYAtcsetsid () function first appeared in QNX. It does not
comply to any standard.
Visit the GSP FreeBSD Man Page Interface. |