Skip to content
This repository was archived by the owner on Nov 23, 2018. It is now read-only.
This repository was archived by the owner on Nov 23, 2018. It is now read-only.

Examples in README fail #19

@koudelka

Description

@koudelka

Looks like subexec's timeout functionality doesn't work unless you specify a logfile.

In https://github.com/nulayer/subexec/blob/master/lib/subexec.rb#L80, #readlines blocks.

$ time ruby -r subexec -e 'Subexec.run "echo 'hello' && sleep 3", :timeout => 1'
0.30s user 0.06s system 10% cpu 3.369 total

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions