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

Split OS.execute into blocking and non-blocking method #19302

Closed
mhilbrunner opened this issue Jun 1, 2018 · 8 comments · Fixed by #44514
Closed

Split OS.execute into blocking and non-blocking method #19302

mhilbrunner opened this issue Jun 1, 2018 · 8 comments · Fixed by #44514

Comments

@mhilbrunner
Copy link
Member

See #19056

@akien-mga
Copy link
Member

Duplicate of #18919.

@neikeq
Copy link
Contributor

neikeq commented Jun 5, 2018

Is this really a duplicate of #18919. It doesn't look like to me.

@akien-mga
Copy link
Member

Well it seemed to me that what is described in #18919 basically implies what this issue here suggests, and as such I had mentioned in #19056 that we could use #18919 to keep track of this proposal.

But if you prefer to use this issue for that, I'm fine with it. It likely needs some more context in the OP though.

@romeojulietthotel
Copy link
Contributor

I see mention of breaking compatibility but why would fixing this break compatibility?

@akien-mga
Copy link
Member

Because unless we write two new methods and keep the old OS.execute() unmodified (and thus still broken as it is now), we would need to modify the OS.execute() API (remove it or change its behaviour), and thus break the compatibility.

@romeojulietthotel
Copy link
Contributor

But why do you think OS.execute would need to be modified in a way that would make it incompatible? Your assertions are unclear.

Using posix_spawn should provide a suitable fix for this. I played with it and it would even provide some extra functionality if we wanted.

@neikeq
Copy link
Contributor

neikeq commented Jul 4, 2018

@romeojulietthotel This is the method signature for OS.execute: http://docs.godotengine.org/en/3.0/classes/class_os.html#class-os-execute
The bool blocking argument would need to be removed, which breaks compatibility.

@Chaosus Chaosus added this to the 3.2 milestone Aug 29, 2018
@SubSage
Copy link
Contributor

SubSage commented Apr 18, 2019

I have a pr that could be helpful with all of this, if anyone wants to double check the pr and make sure it works, feel free : #26462

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

Successfully merging a pull request may close this issue.

6 participants