Main index | Section 3 | Options |
#include <termios.h>
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.
[EBADF] | |
The fd argument is not a valid file descriptor. | |
[ENOTTY] | |
The file descriptor represented by fd is not a terminal. | |
[EINVAL] | |
The pid argument is not equal to the session ID of the calling process. | |
[EPERM] | |
The calling process is not a session leader. | |
[EPERM] | |
The session already has an associated terminal or the terminal already has an associated session. | |
TCSETSID (3) | November 28, 2022 |
Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | I'm not interested in developing a powerful brain. All I'm after is just a mediocre brain, something like the President of the American Telephone and Telegraph Company. | ” |
— Alan Turing |