-
Notifications
You must be signed in to change notification settings - Fork 413
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
fix(haiku): execve not allowed if other pthreads have already been created #10953
base: main
Are you sure you want to change the base?
Conversation
390a5bf
to
a769735
Compare
…eated Co-authored-by: Antonio Nuno Monteiro <anmonteiro@gmail.com> Signed-off-by: Anarchos <sylvain_kerjean@hotmail.com> Signed-off-by: Sylvain78 <sylvain_kerjean@hotmail.com>
@rgrinberg do you think this needs a changelog entry? |
I think it would be worth a changelog entry. I'm still unsure about the issue this is resolving since I've never seen it, so I wouldn't mind a link to some Haiku documentation explaining the issue here. I also don't have a Haiku VM avilable at the moment, so if somebody could double check they can build and run |
I don't see why not. If this change is useful to anyone using Haiku, the change log entry would also be useful |
@Alizter I encounter this when compiling lwt : "dune exec..." leads to "Operation not supported" because of this line kernel/team.cpp#1981. The fact that haiku can't call execve from other threads than the principal thread of a process (a team in haiku jargon), is a discrepancy to POSIX and hence there is a bug about it : https://dev.haiku-os.org/ticket/18665. |
@Sylvain78 Thank you for the context. I recall now seeing something similar to do this when I had a look at Haiku support before. What the Haiku designers will do upstream shouldn't be something we rely on obviously, so the fix that you've given here seems sensible and rigid. Please add a changelog entry together with links to the Haiku issue and this should be good to go. |
Compiling for Haiku