Skip to content

Restoring terminal settings after daemonizing.#1055

Open
Martin-Furter wants to merge 1 commit into
debauchee:masterfrom
Martin-Furter:master
Open

Restoring terminal settings after daemonizing.#1055
Martin-Furter wants to merge 1 commit into
debauchee:masterfrom
Martin-Furter:master

Conversation

@Martin-Furter
Copy link
Copy Markdown

This change solves the problem with misconfigured terminal after starting a daemon. This has been reported as Issue #200 "Executing barrierc makes terminal line invisible #200".
The problem is that the parent process just calls exit(0) after starting the child process. The terminal settings have to be restored before exit.

@shymega
Copy link
Copy Markdown

shymega commented Nov 6, 2021

Going back through issues - I'm rebasing this against master, if it passes CI, we could merge.

@shymega
Copy link
Copy Markdown

shymega commented Nov 6, 2021

OK, I can't push against your branch, as its master, so I need you to rebase against master - or I could open a new PR for this. Alternatively, if you could allow access to your PR's branch, I could do it then.

EDIT: I managed to rebase against your branch. Now we wait for CI to pass.

Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
@shymega shymega requested review from p12tic and shymega November 7, 2021 22:22
@shymega shymega self-assigned this Nov 7, 2021
@shymega shymega added the enhancement New feature or request label Nov 7, 2021
@shymega
Copy link
Copy Markdown

shymega commented Nov 7, 2021

Looks like Windows builds fail - restoreTerminal isn't a member of the NonBlockingStream. I'll look into this. Interestingly, Linux builds are succeeding - so I suspect this is a Windows-only issue.

Copy link
Copy Markdown

@shymega shymega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dummy review, need to remove this from my TODO list. No longer involved with Barrier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants