Skip to content

Commit

Permalink
chore: abort tty control
Browse files Browse the repository at this point in the history
treeland doesn't support handle tty leader

If C-c happend, all frontend programs will get SIGINT.

Log:
  • Loading branch information
justforlxz committed Sep 6, 2024
1 parent db78858 commit 862ef75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper/UserSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ namespace DDM {
// when this is true we'll take control of the tty
bool takeControl = false;

if (vtFd > 0) {
if (vtFd > 0 && !m_helperApp->isSingleMode()) {
dup2(vtFd, STDIN_FILENO);
::close(vtFd);
takeControl = true;
Expand Down

0 comments on commit 862ef75

Please sign in to comment.