Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restoring terminal settings after daemonizing. #1055

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Martin-Furter
Copy link

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

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

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.

@shymega shymega self-assigned this Nov 7, 2021
@shymega shymega added the enhancement New feature or request label Nov 7, 2021
@shymega
Copy link

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

@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