fix hexagon_launcher crashing #8

Merged
leahanderson1 merged 1 commits from dev into dev 2025-07-05 16:38:40 -04:00
leahanderson1 commented 2025-07-05 16:32:50 -04:00 (Migrated from github.com)

mrew :3
just ignores sigpipe BS

mrew :3 just ignores sigpipe BS
coderabbitai[bot] commented 2025-07-05 16:32:55 -04:00 (Migrated from github.com)
📝 Walkthrough

Walkthrough

The changes introduce the libc crate as a new dependency and update the main function to explicitly set the SIGPIPE signal handler to its default action using libc::signal at program startup. No other dependencies or program logic were altered.

Changes

File(s) Change Summary
hexagon_launcher/Cargo.toml Added libc version 0.2.174 as a dependency.
hexagon_launcher/src/main.rs Inserted unsafe block to set SIGPIPE handler to default using libc::signal before error setup.

Sequence Diagram(s)

sequenceDiagram
    participant OS
    participant Main
    participant libc
    participant color_eyre

    OS->>Main: Start program
    Main->>libc: Set SIGPIPE handler to default (signal)
    Main->>color_eyre: Install error handler
    Main->>Main: Continue with program logic

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 Clippy (1.86.0)
Updating crates.io index
Updating git repository `https://github.com/StardustXR/core.git`

error: failed to get stardust-xr-fusion as a dependency of package app_grid v0.1.0 (/app_grid)

Caused by:
failed to load source for dependency stardust-xr-fusion

Caused by:
Unable to update https://github.com/StardustXR/core.git?branch=dev#d2964d8d

Caused by:
failed to create directory /usr/local/git/db/core-1eef5e7498a326be

Caused by:
Permission denied (os error 13)

Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.
<!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough The changes introduce the `libc` crate as a new dependency and update the main function to explicitly set the SIGPIPE signal handler to its default action using `libc::signal` at program startup. No other dependencies or program logic were altered. ## Changes | File(s) | Change Summary | |--------------------------------------------|-------------------------------------------------------------------------------------------------| | hexagon_launcher/Cargo.toml | Added `libc` version `0.2.174` as a dependency. | | hexagon_launcher/src/main.rs | Inserted unsafe block to set SIGPIPE handler to default using `libc::signal` before error setup.| ## Sequence Diagram(s) ```mermaid sequenceDiagram participant OS participant Main participant libc participant color_eyre OS->>Main: Start program Main->>libc: Set SIGPIPE handler to default (signal) Main->>color_eyre: Install error handler Main->>Main: Continue with program logic ``` </details> <!-- walkthrough_end --> <!-- This is an auto-generated comment: all tool run failures by coderabbit.ai --> > [!WARNING] > There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. > > <details> > <summary>🔧 Clippy (1.86.0)</summary> > > Updating crates.io index > Updating git repository `https://github.com/StardustXR/core.git` > error: failed to get `stardust-xr-fusion` as a dependency of package `app_grid v0.1.0 (/app_grid)` > > Caused by: > failed to load source for dependency `stardust-xr-fusion` > > Caused by: > Unable to update https://github.com/StardustXR/core.git?branch=dev#d2964d8d > > Caused by: > failed to create directory `/usr/local/git/db/core-1eef5e7498a326be` > > Caused by: > Permission denied (os error 13) > > > > </details> <!-- end of auto-generated comment: all tool run failures by coderabbit.ai --> <!-- internal state start --> <!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNwSPbABsvkCiQBHbGlcSHFcLzpIACIAM3gAD0hYEgS0InwMAH0vNGwMBhS+BipEBAwiaMgAdzRkBwFmdRp6OTCUyGxESkgAeVwaCgBhRWkARgAGMfRkbm9ffyCQyAxHAR6ADhQsXA6AZVxnWi7cAA0bAHpefAJEQ75/bnxEdXwXDRgOpUQS+G5xTI8Cj4CTwJT0WJvdqoWwoZBNDDwZhoLwAGgUGEO8ERFX4GC88l2HhoCVC0WY/mqkA4AGZoh93NY7NpmMgCOhaLR/IhkJgIYl0IxSuUiHCHB5/LkWmF8O0PCk0hlsrl8oUekxmE9yJiPgA5WWxbAUIl8JRYrzIKGpbi5DDUeCZXkCfB4OWMWCYUiWvhExh5br8WJukp1WDofzbBhebDg7Zu76/f4OjAMjpzHx+QLBO5+rDrSCgkjVKLUN0AVRsABkuLABtxEBwLhciOpYNgBBoNRcDkcTucrsDbvcrvMLhsNEZ9MZwFAyPR8EG8gRiGRlNKNWxMVxePxhKJxFIZPImEoqKp1FodFOTFA4KhUJgcMvSOQqOuWJvOH40FSHE4XJAbQnso56aNouhgIY06mAYCrpJkOR5AURQXEMzgZBoBDMF4HAGNE+EGBYkAAIIAJIrq+1BRH+yIAQu7qetIbhfCQ3BzmQDDyF4SChNiboAAZwUqiGqkU/GQGhFAYVhvjxJENR1J03C0FRrTyGgnLYqKaArEWkCpIMdq+CGNCQEobEYEoBTyIC/HcQIDDiVIFAvLZEwaAATBoYwAOwACz8Xqso3EUDEVNIMpmax7EFPAEVQkwGDxEQRr2oCxYRsiSgTkYhGWMRXiDGlGBsrKvpKFGzjFZaQbWm80pQnMAjcQw+mYuocWIEY+rkBO+HRJOMFCQhKrIZQFyIBQDAXMi2IaC5uH9XlJHkS+a7UY4tE2UGhSMV1BiMrNWCGgUAJYLU8KKPA8RROy2JRjGHiPvkiBoLEHjNfgDAANbtKW3S4Gy+ykQA4lYpFWAAovY8BEEZyR8pEPplSxsR5IV6BiMmnQvLi9kMBwHAvHDKIABT44Teyg+DUPohTHBUyDWQACIAGKVgAlIBJCQhG2J3Ci3G4r6TBeG8WQkLIEaUMCfAepZSOpqgu3hRytDINaLXqAjCtaYGbqMzT0PE/Dpa+gLxr6761xEFQzCphKyz0b6R2QCdWOAnybo23bkBiy2rX+K7omMbQOXmPlhVrsmpXxqIuRvjH+t1caUSNe2LVteEnWTpA+phV6kXm7Ddq4Ea8W1QkTyp/OfBNZn7AdRFGUeFlJB9QRBhTgYN5tfOi54IQa1vlEG7sFwVC/ptzjyEBoxnmoYFXpBPczgorDqFkYKIFk/iFsWtBZBboTd73sQ+QAnBMtAbGjfkAKwbGgJBoAAbLQj/335NIbK/6x+RMDYGw/JoAvvfC+F9YgTA8lfCCUFe4bk3tvXeJB950AlpZOBQA --> <!-- internal state end --> <!-- finishing_touch_checkbox_start --> <details open="true"> <summary>✨ Finishing Touches</summary> - [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings </details> <!-- finishing_touch_checkbox_end --> <!-- tips_start --> --- Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary>❤️ Share</summary> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </details> <details> <summary>🪧 Tips</summary> ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=StardustXR/protostar&utm_content=8): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit <commit_id>, please review it.` - `Explain this complex logic.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai explain this code block.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.` - `@coderabbitai read src/utils.ts and explain its main purpose.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` - `@coderabbitai help me debug CodeRabbit configuration file.` ### Support Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (Invoked using PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to do a full review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR. - `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository. - `@coderabbitai help` to get help. ### Other keywords and placeholders - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. - Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description. - Add `@coderabbitai` anywhere in the PR title to generate the title automatically. ### CodeRabbit Configuration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information. - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json` ### Documentation and Community - Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit. - Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements. </details> <!-- tips_end -->
coderabbitai[bot] (Migrated from github.com) reviewed 2025-07-05 16:34:19 -04:00
coderabbitai[bot] (Migrated from github.com) left a comment

Actionable comments posted: 0

🧹 Nitpick comments (1)
hexagon_launcher/src/main.rs (1)

39-42: Good fix! Consider adding documentation and error handling.

This SIGPIPE signal handling fix addresses the crashing issue effectively. The placement at the start of main() is correct.

Consider these improvements:

    unsafe {
+       // Set SIGPIPE to default behavior to ensure clean termination
+       // when writing to broken pipes (fixes hexagon_launcher hanging)
-       libc::signal(libc::SIGPIPE, libc::SIG_DFL);
+       let result = libc::signal(libc::SIGPIPE, libc::SIG_DFL);
+       if result == libc::SIG_ERR {
+           eprintln!("Warning: Failed to set SIGPIPE signal handler");
+       }
    }

Platform compatibility note: This fix is Unix-specific and will not compile on Windows. Consider adding conditional compilation if cross-platform support is needed:

#[cfg(unix)]
unsafe {
    // SIGPIPE signal handling code
}
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f5008ff5b5 and f790d8fa45.

Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (2)
  • hexagon_launcher/Cargo.toml (1 hunks)
  • hexagon_launcher/src/main.rs (1 hunks)
🔇 Additional comments (1)
hexagon_launcher/Cargo.toml (1)

18-18: libc 0.2.174 is up-to-date and free of known vulnerabilities

  • Confirmed that 0.2.174 is the latest stable release of the Rust libc crate as of July 2025.
  • No CVEs or security advisories have been reported against this version.
  • It’s safe to proceed with adding libc = "0.2.174" for your signal-handling changes.
**Actionable comments posted: 0** <details> <summary>🧹 Nitpick comments (1)</summary><blockquote> <details> <summary>hexagon_launcher/src/main.rs (1)</summary><blockquote> `39-42`: **Good fix! Consider adding documentation and error handling.** This SIGPIPE signal handling fix addresses the crashing issue effectively. The placement at the start of `main()` is correct. Consider these improvements: ```diff unsafe { + // Set SIGPIPE to default behavior to ensure clean termination + // when writing to broken pipes (fixes hexagon_launcher hanging) - libc::signal(libc::SIGPIPE, libc::SIG_DFL); + let result = libc::signal(libc::SIGPIPE, libc::SIG_DFL); + if result == libc::SIG_ERR { + eprintln!("Warning: Failed to set SIGPIPE signal handler"); + } } ``` **Platform compatibility note:** This fix is Unix-specific and will not compile on Windows. Consider adding conditional compilation if cross-platform support is needed: ```rust #[cfg(unix)] unsafe { // SIGPIPE signal handling code } ``` </blockquote></details> </blockquote></details> <details> <summary>📜 Review details</summary> **Configuration used: CodeRabbit UI** **Review profile: CHILL** **Plan: Pro** <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between f5008ff5b5f013d9b82dc42509de524212934673 and f790d8fa458aea6d5854386be40884a9599f0290. </details> <details> <summary>⛔ Files ignored due to path filters (1)</summary> * `Cargo.lock` is excluded by `!**/*.lock` </details> <details> <summary>📒 Files selected for processing (2)</summary> * `hexagon_launcher/Cargo.toml` (1 hunks) * `hexagon_launcher/src/main.rs` (1 hunks) </details> <details> <summary>🔇 Additional comments (1)</summary><blockquote> <details> <summary>hexagon_launcher/Cargo.toml (1)</summary> `18-18`: **libc 0.2.174 is up-to-date and free of known vulnerabilities** - Confirmed that `0.2.174` is the latest stable release of the Rust `libc` crate as of July 2025. - No CVEs or security advisories have been reported against this version. - It’s safe to proceed with adding `libc = "0.2.174"` for your signal-handling changes. </details> </blockquote></details> </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
leahanderson1 commented 2025-07-05 16:36:16 -04:00 (Migrated from github.com)

Actionable comments posted: 0
🧹 Nitpick comments (1)

hexagon_launcher/src/main.rs (1)> 39-42: Good fix! Consider adding documentation and error handling.

This SIGPIPE signal handling fix addresses the crashing issue effectively. The placement at the start of main() is correct.
Consider these improvements:

    unsafe {
+       // Set SIGPIPE to default behavior to ensure clean termination
+       // when writing to broken pipes (fixes hexagon_launcher hanging)
-       libc::signal(libc::SIGPIPE, libc::SIG_DFL);
+       let result = libc::signal(libc::SIGPIPE, libc::SIG_DFL);
+       if result == libc::SIG_ERR {
+           eprintln!("Warning: Failed to set SIGPIPE signal handler");
+       }
    }

Platform compatibility note: This fix is Unix-specific and will not compile on Windows. Consider adding conditional compilation if cross-platform support is needed:

#[cfg(unix)]
unsafe {
    // SIGPIPE signal handling code
}

📜 Review details

go stick your stupid nitpicks where the sun doesn't shine
if it fails it'll crash anyways

> **Actionable comments posted: 0** > 🧹 Nitpick comments (1) > > > hexagon_launcher/src/main.rs (1)> `39-42`: **Good fix! Consider adding documentation and error handling.** > > > This SIGPIPE signal handling fix addresses the crashing issue effectively. The placement at the start of `main()` is correct. > > > Consider these improvements: > > > ```diff > > > unsafe { > > > + // Set SIGPIPE to default behavior to ensure clean termination > > > + // when writing to broken pipes (fixes hexagon_launcher hanging) > > > - libc::signal(libc::SIGPIPE, libc::SIG_DFL); > > > + let result = libc::signal(libc::SIGPIPE, libc::SIG_DFL); > > > + if result == libc::SIG_ERR { > > > + eprintln!("Warning: Failed to set SIGPIPE signal handler"); > > > + } > > > } > > > ``` > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > **Platform compatibility note:** This fix is Unix-specific and will not compile on Windows. Consider adding conditional compilation if cross-platform support is needed: > > > ```rust > > > #[cfg(unix)] > > > unsafe { > > > // SIGPIPE signal handling code > > > } > > > ``` > > 📜 Review details go stick your stupid nitpicks where the sun doesn't shine if it fails it'll crash anyways
technobaboo commented 2025-07-05 16:38:04 -04:00 (Migrated from github.com)

Actionable comments posted: 0
🧹 Nitpick comments (1)

hexagon_launcher/src/main.rs (1)> 39-42: Good fix! Consider adding documentation and error handling.

This SIGPIPE signal handling fix addresses the crashing issue effectively. The placement at the start of main() is correct.
Consider these improvements:

    unsafe {
+       // Set SIGPIPE to default behavior to ensure clean termination
+       // when writing to broken pipes (fixes hexagon_launcher hanging)
-       libc::signal(libc::SIGPIPE, libc::SIG_DFL);
+       let result = libc::signal(libc::SIGPIPE, libc::SIG_DFL);
+       if result == libc::SIG_ERR {
+           eprintln!("Warning: Failed to set SIGPIPE signal handler");
+       }
    }

Platform compatibility note: This fix is Unix-specific and will not compile on Windows. Consider adding conditional compilation if cross-platform support is needed:

#[cfg(unix)]
unsafe {
    // SIGPIPE signal handling code
}

📜 Review details

go stick your stupid nitpicks where the sun doesn't shine if it fails it'll crash anyways

sorry, testing this out to see if it does actually useful code reviews and given this is a 1-line PR it''s not very good...

> > **Actionable comments posted: 0** > > 🧹 Nitpick comments (1) > > > hexagon_launcher/src/main.rs (1)> `39-42`: **Good fix! Consider adding documentation and error handling.** > > > > This SIGPIPE signal handling fix addresses the crashing issue effectively. The placement at the start of `main()` is correct. > > > > Consider these improvements: > > > > ```diff > > > > unsafe { > > > > + // Set SIGPIPE to default behavior to ensure clean termination > > > > + // when writing to broken pipes (fixes hexagon_launcher hanging) > > > > - libc::signal(libc::SIGPIPE, libc::SIG_DFL); > > > > + let result = libc::signal(libc::SIGPIPE, libc::SIG_DFL); > > > > + if result == libc::SIG_ERR { > > > > + eprintln!("Warning: Failed to set SIGPIPE signal handler"); > > > > + } > > > > } > > > > ``` > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > **Platform compatibility note:** This fix is Unix-specific and will not compile on Windows. Consider adding conditional compilation if cross-platform support is needed: > > > > ```rust > > > > #[cfg(unix)] > > > > unsafe { > > > > // SIGPIPE signal handling code > > > > } > > > > ``` > > > > > > 📜 Review details > > go stick your stupid nitpicks where the sun doesn't shine if it fails it'll crash anyways sorry, testing this out to see if it does actually useful code reviews and given this is a 1-line PR it''s not very good...
Sign in to join this conversation.