Skip to content

Commit

Permalink
cmd/vinegar: consider signal as non-error
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Feb 18, 2024
1 parent ee9ef61 commit 5cc7215
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/vinegar/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,12 @@ func (b *Binary) Run(args ...string) error {
}()

if err := cmd.Run(); err != nil {
// thanks for your time, fizzie on #go-nuts
// Killed, not an error (in most cases)
if cmd.ProcessState.ExitCode() == -1 {
slog.Warn("Roblox was killed!")
return nil
}
return fmt.Errorf("roblox process: %w", err)
}

Expand Down

0 comments on commit 5cc7215

Please sign in to comment.