GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix inverted SIGTSTP condition in IPC server by gnodet · Pull Request #1915 · apache/maven-resolver

Conversation

@gnodet

@gnodet gnodet commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

The condition for ignoring SIGTSTP in IpcServer.main() was inverted:

  • if (IpcClient.IS_WINDOWS) tried to register a SIGTSTP handler on Windows, where the signal does not exist — causing a crash at daemon startup.
  • On Unix (where SIGTSTP actually exists and is sent on Ctrl-Z), nothing was ignored — causing the IPC daemon to suspend alongside the client when the user pressed Ctrl-Z.

Fix: Negate the condition to if (!IpcClient.IS_WINDOWS) so that SIGTSTP is ignored on Unix only.

This is a one-character fix (! added) with no behavioral change on any OS other than making things work correctly:

  • Unix: SIGTSTP now properly ignored → daemon stays alive on Ctrl-Z ✓
  • Windows: SIGTSTP registration skipped → no crash ✓

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gnodet
Fix inverted SIGTSTP condition in IPC server
70e464e
The condition for ignoring SIGTSTP was inverted: it tried to
ignore TSTP on Windows (where it does not exist, causing a crash)
and did nothing on Unix (where TSTP exists, causing the daemon
to suspend on Ctrl-Z).

Fix: ignore SIGTSTP only on non-Windows (Unix) systems.
cstamas
cstamas approved these changes Jun 9, 2026
View reviewed changes
@gnodet
gnodet merged commit b06e62f into apache:master Jun 9, 2026
14 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@gnodet gnodet changed the title [MNG-XXXX] Fix inverted SIGTSTP condition in IPC server Fix inverted SIGTSTP condition in IPC server Jun 9, 2026
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

@gnodet Please assign appropriate label to PR according to the type of change.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot assigned gnodet Jun 9, 2026
@github-actions github-actions Bot added this to the 2.0.19 milestone Jun 9, 2026
@cstamas cstamas added the bug Something isn't working label Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cstamas cstamas cstamas approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@gnodet gnodet

Labels

bug Something isn't working

Projects

None yet

Milestone

2.0.19

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@gnodet @cstamas
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.