Sample Header Ad - 728x90

For a non-controlling process, is `ioctl(fd, TIOCNOTTY)` the same as `close(fd)`?

0 votes
1 answer
905 views
Assume a session has a controlling terminal. If a process in the session that is not the session leader, calls ioctl(fd, TIOCNOTTY), is it correct that it only closes the fd for itself? Is it the same as close(fd)? Thanks.
Asked by Tim (106420 rep)
Jan 4, 2019, 04:56 PM
Last activity: Nov 19, 2021, 02:07 PM