Skip to content

Fix multi-threading for OSX - #37

Merged
codingo merged 2 commits into
codingo:masterfrom
Emxm3:master
Apr 30, 2019
Merged

Fix multi-threading for OSX#37
codingo merged 2 commits into
codingo:masterfrom
Emxm3:master

Conversation

@Emxm3

@Emxm3 Emxm3 commented Apr 30, 2019

Copy link
Copy Markdown
Contributor

Issue was with how OSX handles os.system( ) calls. (I believe it's like they were trying to share the same shell, so they would therefore naturally block future calls making it synchronous)
Switched to subprocess.call( ) and allowing each worker to spawn their own instance of a shell.

Emxm3 added 2 commits April 30, 2019 16:00
Fixes bug #36. 
I think the issue is the original method "shares" the shell that is used by all the workers and therefore blocking other calls to that shell. Using subprocess.call with the shell=true is pretty much allowing each worker to spawn their own instance of a shell.
Update task runner to allow multi-threading on OSX
@codingo codingo self-assigned this Apr 30, 2019
@codingo codingo added the bug Something isn't working label Apr 30, 2019
@codingo

codingo commented Apr 30, 2019

Copy link
Copy Markdown
Owner

Closes #36

@codingo
codingo merged commit c8ae176 into codingo:master Apr 30, 2019
@codingo

codingo commented Apr 30, 2019

Copy link
Copy Markdown
Owner

Tested and working as expected. Thank-you!

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants