Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding task.standardInput = FileHandle.nullDevice to default executor #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CallumKerson
Copy link

Hey, I was using this to run FFMpeg commands and noticed it hanging on commands that expected input. As this is not the interactive case, I have added

task.standardInput = FileHandle.nullDevice

to the ActualTaskExecutor, so that the task is expecting no input. I am not sure if this will have any adverse effects but it works for all the commands I have run, but only tested on macOS.

@thii
Copy link
Contributor

thii commented Jan 16, 2020

Tests are failing on Linux:

Fatal error: POSIX command failed with error: 9 -- EBADF: file Foundation/Process.swift, line 542
717

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants