mirror of
https://github.com/safing/portmaster
synced 2025-04-22 11:59:09 +00:00
Warn instead of failing when process username cannot be found
This commit is contained in:
parent
af3bb804bf
commit
a99b68ec91
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ func loadProcess(ctx context.Context, key string, pInfo *processInfo.Process) (*
|
||||||
// Username
|
// Username
|
||||||
process.UserName, err = pInfo.UsernameWithContext(ctx)
|
process.UserName, err = pInfo.UsernameWithContext(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("process: failed to get Username for p%d: %w", pInfo.Pid, err)
|
log.Tracer(ctx).Warningf("process: failed to get username (PID %d): %s", pInfo.Pid, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: User Home
|
// TODO: User Home
|
||||||
|
|
Loading…
Add table
Reference in a new issue