[PR #1055] Restoring terminal settings after daemonizing. #1751

Open
opened 2026-05-05 08:01:04 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/debauchee/barrier/pull/1055
Author: @Martin-Furter
Created: 2/5/2021
Status: 🔄 Open

Base: masterHead: master


📝 Commits (1)

  • c32e7c6 Restoring terminal settings after daemonizing.

📊 Changes

6 files changed (+17 additions, -0 deletions)

View changed files

📝 src/lib/arch/unix/ArchDaemonUnix.cpp (+3 -0)
📝 src/lib/base/EventQueue.h (+1 -0)
📝 src/lib/base/IEventQueue.h (+5 -0)
📝 src/lib/base/NonBlockingStream.cpp (+6 -0)
📝 src/lib/base/NonBlockingStream.h (+1 -0)
📝 src/test/mock/barrier/MockEventQueue.h (+1 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/debauchee/barrier/pull/1055 **Author:** [@Martin-Furter](https://github.com/Martin-Furter) **Created:** 2/5/2021 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`c32e7c6`](https://github.com/debauchee/barrier/commit/c32e7c607eee569e9651aac524ad44345c0491b1) Restoring terminal settings after daemonizing. ### 📊 Changes **6 files changed** (+17 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/arch/unix/ArchDaemonUnix.cpp` (+3 -0) 📝 `src/lib/base/EventQueue.h` (+1 -0) 📝 `src/lib/base/IEventQueue.h` (+5 -0) 📝 `src/lib/base/NonBlockingStream.cpp` (+6 -0) 📝 `src/lib/base/NonBlockingStream.h` (+1 -0) 📝 `src/test/mock/barrier/MockEventQueue.h` (+1 -0) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror added the
pull-request
label 2026-05-05 08:01:04 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#1751
No description provided.