Skip to content

readlink /proc/pid/fd/ sometimes returns a weird string #7

@izabera

Description

@izabera

e.g. in a new shell upon opening webvm you can do ls -l /proc/self/fd/0 and readlink will return "socket:[0]"

in that case, fd 0 is a terminal and isatty(0) returns 1, so it's weird that it points to socket:[0]

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