Skip to content

ipfs commands want to consume all stdin #858

Closed
@joeyh

Description

@joeyh

When building a git-annex to ipfs bridge, I noticed that some ipfs commands were blocking, trying to read stdin. In this case, stdin was being used for git-annex IPC.

Commands observed to read stdin in this way:

ipfs cat $addr > file

ipfs add -q file

In both cases, I had to use </dev/null to provide ipfs with an empty stdin to avoid it hanging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    exp/noviceSomeone with a little familiarity can pick upkind/bugA bug in existing code (including security flaws)topic/cleanupTopic cleanuptopic/commandsTopic commands

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions