Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename signals_linux.go to signals_posix.go #112

Merged
merged 2 commits into from
Apr 7, 2024

Conversation

neomantra
Copy link
Contributor

Commit 00adde7 added signals support and used the go:build directive
to handle different GOOS. However, since the signals_linux.go files uses
one of Golang's magic file name OS endings (_linux.go), it is ignored when
GOOS=darwin.

To remedy this, I simply renamed the file to signals_posix.go since it includes
POSIX signals such as SIGHUP and SIGTERM.

Commit 00adde7 added signals support and used the go:build directive
to handle different GOOS.  However, since the signals_linux.go files uses
one of Golang's magic file name OS endings (_linux.go), it is ignored when
GOOS=darwin.

To remedy this, I simply renamed the file to signals_posix.go since it includes
POSIX signals such as SIGHUP and SIGTERM.
"/gonb" is the artifact from "go build" and should be excluded from
accidental commits.
@janpfeifer janpfeifer merged commit f2b7528 into janpfeifer:main Apr 7, 2024
1 check passed
@janpfeifer
Copy link
Owner

Thanks Evan @neomantra !

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