Skip to content

Command stdout is only emitted on child process close #1935

@lucasfernog

Description

@lucasfernog

Describe the bug
The tauri::process::Command API has a bug on the tokio mpsc usage: the stdout line is sent on the channel but the receiver only sees the message when the process is terminated.

To Reproduce
Steps to reproduce the behavior:

  1. Open the API example
  2. Click on the shell tab
  3. Run the following command: `node -e "console.log('message'); while(true){}"
  4. You'll see that the output is only seen when you click on the "kill" button

Expected behavior
The stdout line is seen immediately.

Metadata

Metadata

Assignees

No one assigned

    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