Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(agent): Allow signal propagation when running as PID 1 #6141

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

Merged
merged 2 commits into from
Feb 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Ignore test in CI
  • Loading branch information
mafredri authored Feb 9, 2023
commit 541668684470cf2d13edc9cf24c6dd6ff660232d
7 changes: 7 additions & 0 deletions agent/reaper/reaper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ func TestReap(t *testing.T) {

//nolint:paralleltest // Signal handling.
func TestReapInterrupt(t *testing.T) {
// Don't run the reaper test in CI. It does weird
// things like forkexecing which may have unintended
// consequences in CI.
if _, ok := os.LookupEnv("CI"); ok {
t.Skip("Detected CI, skipping reaper tests")
}

errC := make(chan error, 1)
pids := make(reap.PidCh, 1)

Expand Down