Skip to content

Commit

Permalink
Parse int instead of uint
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Dec 19, 2023
1 parent ff116ef commit c621579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/log/osquerylogs/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (l *OsqueryLogAdapter) logInfoAboutUnrecognizedProcessLockingPidfile(p []by
}

pidStr := strings.TrimSpace(matches[0][1]) // We want the group, not the full match
pid, err := strconv.ParseUint(pidStr, 10, 32)
pid, err := strconv.ParseInt(pidStr, 10, 32)
if err != nil {
l.slogger.Log(context.TODO(), slog.LevelError,
"could not extract PID of non-osqueryd process using pidfile",
Expand Down

0 comments on commit c621579

Please sign in to comment.