Skip to content

Disable SIGPIPE signal - #19

Merged
clauspruefer merged 1 commit into
mainfrom
copilot/add-linux-compile-server-component
Aug 1, 2026
Merged

Disable SIGPIPE signal#19
clauspruefer merged 1 commit into
mainfrom
copilot/add-linux-compile-server-component

Conversation

@clauspruefer

@clauspruefer clauspruefer commented Aug 1, 2026

Copy link
Copy Markdown
Member

The linux server tests failed because when the connection on receiver side was closed unexcpectedly, linux sends a SIGPIPE, so the server was closed silently. Disabling SIGPIPE prevents this, now tests work fine.

Copilot AI review requested due to automatic review settings August 1, 2026 15:24
@clauspruefer
clauspruefer merged commit 27e2b96 into main Aug 1, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Ready to approve

The change is small and directly addresses the SIGPIPE-induced test failures, with only minor robustness/style improvements suggested in comments.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR prevents the Linux server test harness from being terminated by SIGPIPE when a client closes the connection mid-response, so write failures surface as normal I/O errors instead of killing the process.

Changes:

  • Add signal handling setup in linux_server/main.cpp to ignore SIGPIPE.
File summaries
File Description
linux_server/main.cpp Ignores SIGPIPE at process startup to stop abrupt termination on broken pipe during socket writes.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread linux_server/main.cpp
#include <string>
#include <thread>

#include <signal.h>
Comment thread linux_server/main.cpp
Comment on lines +49 to +50
//- ignore PIPE signal
signal(SIGPIPE, SIG_IGN);
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.

2 participants