Skip to content

Inconsistent EPERM errno #58702

Open
Open
@guybedford

Description

@guybedford

Version

All

Platform

All

Subsystem

process

What steps will reproduce the bug?

e.g. process.setgid(100) - returns EPERM with errno set to 1.

How often does it reproduce? Is there a required condition?

Always.

What is the expected behavior? Why is that the expected behavior?

There should likely be more consistenty wrt EPERM error numbers - UV_ error numbers are supposed to always be negative not positive. So the code should probably be -1 not 1.

What do you see instead?

The code reported is always 1.

// cc @jasnell

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions