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

Fixes #1687 by extra semaphore retval handle code for OSX #1928

Conversation

neoascetic
Copy link
Contributor

@neoascetic
Copy link
Contributor Author

Or maybe removing of assertion is better?

@kahrl kahrl added OSX Bug Issues that were confirmed to be a bug labels Dec 10, 2014
@smarek
Copy link
Contributor

smarek commented Dec 10, 2014

Indeed fixing the issue, I've just tested. Thank you.
However compiled version cannot grab my controls (keyboard, mouse clicking works fine), could this fix influence that?

@neoascetic
Copy link
Contributor Author

Yeah :)
Seems like odd bug somewhere between OSX and Irrlicht.
Try to create folder named "Contents" in the same folder where binary is, and see the magic.

@smarek
Copy link
Contributor

smarek commented Dec 10, 2014

Well, that's just perfect, oh great wizard @neoascetic :D

@smarek
Copy link
Contributor

smarek commented Dec 13, 2014

@kwolekr @kahrl
Can I ask you to merge this pull request, as it is essential for minetest to be osx/bsd compatible, or put out a review/info, why this cannot be merged, if that's the case? Thank you

@Zeno- Zeno- added this to the 0.4.11 milestone Dec 14, 2014
@kwolekr
Copy link
Contributor

kwolekr commented Dec 14, 2014

This patch doesn't do anything worse than already exists in the source file, so I'll approve of it right now as a fix.

jthread/posix/jsemaphore.cpp as a whole needs to be cleaned up ASAP. Where does it say errno can be used as an lvalue? Is sem_wait() supported on OSX but all the other sem_* functions aren't? No? A macro redefined those functions? Why does it maintain its own semaphore count? The code itself is pretty disorganized too. This shit is FUBAR. I can't believe the previous commit(s) got approval.

@Zeno-
Copy link
Contributor

Zeno- commented Dec 14, 2014

commit a0ac471

@Zeno- Zeno- closed this Dec 14, 2014
@neoascetic neoascetic deleted the fixes/osx-jsemaphore-assertion-fail branch December 14, 2014 17:31
@sfan5 sfan5 modified the milestone: 0.4.12 Dec 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues that were confirmed to be a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants