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

Exit on Process::write on linux #28

@smurfy

Description

@smurfy

I have a problem not reliable getting outputs.
A workaround i found is, sending "\n" via Process::write

My Problem now is, that if the process exits write causes a crash. (my program just exits without any error message or exception). I added log messages before and after the actual write call and the after message is never printed.

I do a pid check before the actual write, but i still have the exit.
My code is loosely based on Example 8, but with output buffer.

Any idea how to avoid the program to exit. Also any idea why the output is not really reliable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions