Skip to content

Conversation

noborus
Copy link
Owner

@noborus noborus commented Jun 27, 2025

  • Rename suspend.go to suspend_unix.go for Unix-specific implementation
  • Rename suspend_windows.go to suspend_other.go for other platforms
  • Update go.mod dependencies

Fixes #805

- Rename suspend.go to suspend_unix.go for Unix-specific implementation
- Rename suspend_windows.go to suspend_other.go for other platforms
- Update go.mod dependencies

Fixes #805
@noborus noborus requested a review from Copilot June 27, 2025 22:38
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR aims to improve cross-platform compatibility by renaming platform-specific files, updating build tags, and switching to the appropriate API for process group retrieval on Unix systems.

  • Renames suspend.go to suspend_unix.go and suspend_windows.go to suspend_other.go with updated build tags
  • Replaces syscall.Getpgrp with unix.Getpgrp in the Unix implementation
  • Updates go.mod dependencies to include the correct version of golang.org/x/sys

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
oviewer/suspend_unix.go Updated build tags and API call to use golang.org/x/sys/unix for process group retrieval
oviewer/suspend_other.go Renamed file with adjusted build tag and improved comment clarity
go.mod Added and adjusted dependency on golang.org/x/sys

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@noborus noborus merged commit 6da5388 into master Jun 28, 2025
9 checks passed
@noborus noborus deleted the fix-support-getpgrp branch July 7, 2025 23:44
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.

fix Illumos build
1 participant