How do I assign the controlling terminal to other process?
2
votes
0
answers
479
views
I use
TIOCSCTTY
to forcibly take over the controlling terminal in other "remote" application. But after the application finishes running, controlling terminal gets orphaned and bash
stops reacting to Ctrl+C until I restart it with bash$ exec bash
.
How should I explicitly return the controlling terminal back after taking it with TIOCSCTTY
?
Asked by Vi.
(5985 rep)
Jun 11, 2014, 08:02 PM
Last activity: Mar 19, 2017, 04:37 PM
Last activity: Mar 19, 2017, 04:37 PM