Skip to content

Modify ---NoUI behaviour on Linux, macOS to correctly detach controlling terminal#856

Open
agadsby wants to merge 2 commits into
SDL-Hercules-390:developfrom
agadsby:patch-6
Open

Modify ---NoUI behaviour on Linux, macOS to correctly detach controlling terminal#856
agadsby wants to merge 2 commits into
SDL-Hercules-390:developfrom
agadsby:patch-6

Conversation

@agadsby

@agadsby agadsby commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Process the --NoUI option early in startup to allow for the controlling tty to be detached (if necessary) and to not try and process a non-readable stdin file.

This allows for the expected behaviour on non Windows platforms when Hercules is started using "nohup" and &.

This is a PARTIAL fix for Issue #849 .

Remaining to be done is retain the logger thread for longer in shutdown so messages are not lost during termination.

agadsby added 2 commits July 6, 2026 14:15
These changes allow a user to use --NoUI to run Hercules using nohup and & AND get the expected behaviour.

These changes have NO impact to Windows users.
Clarify behavior of Hercules on non-Windows platforms when using --NoUI option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant