Skip to content

interpreter: strange pipe behaviour #204

Open

Description

@i4ki
λ> bash
$ yes "" | make oldconfig
scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#
$ exit
λ> yes "" | make oldconfig
scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#
...
command does't exit...
^CERROR: <interactive>:1:7: signal: interrupt|success

Activity

  1. i4ki commented on Apr 30, 2017

    @i4ki
    CollaboratorAuthor

    @vitorarins need to use os.Wait(-1, 0) to get same semantic.of waitpid(WAIT_ANY, ...). Or do every wait in a separate goroutine:
    https://groups.google.com/forum/m/#!topic/golang-nuts/kaoPxl1L1SY

  2. vitorarins commented on Apr 30, 2017

    @vitorarins
    Member

    Great! There's a guy in that thread saying that using wait with pid -1 might be dangerous, do you know anything about that?

  3. i4ki commented on May 13, 2017

    @i4ki
    CollaboratorAuthor

    unfortunately, no :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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