Skip to content

Conversation

@fasuizu-br
Copy link

Summary

force_reboot() in src/macos.rs was using Linux-specific /proc/sysrq paths which always fail on macOS. Replaced with shutdown -r now.

Also removed now-unused File and Write imports.

Closes #18

Test plan

  • cargo check --target aarch64-apple-darwin passes
  • Manual verification on macOS (requires root)

Replace Linux-specific /proc/sysrq code (which always fails on macOS)
with `shutdown -r now`. Also remove now-unused File and Write imports.

Closes risoflora#18
Copy link
Collaborator

@AdrianEddy AdrianEddy left a comment

Choose a reason for hiding this comment

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

Verified manually on macOS

@AdrianEddy AdrianEddy merged commit 277e7bd into risoflora:main Jan 29, 2026
4 checks passed
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.

Bug: force_reboot() on macOS uses Linux-only /proc paths

2 participants