-
Notifications
You must be signed in to change notification settings - Fork 3
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
syscall.Dup2 is unsupported #21
Comments
Thanks for reporting @liavOpti , this seems a simple enough fix. Let me check it. |
I used dup3 just in the very odd case someone closed fd 0 or 1, in which case close+dup would duplicate to the wrong fd number -- I assume it picks up the first one free. Btw, just below I use Pls, let me know if it works. With so many offerings with Arm64 these days (even Nvidia is launching a AI Desktop arm64 based) it would be very neat to add support for it. |
It should be in head in |
Hey!
I noticed that in the file gopjrt/pjrt/dynamiclib.go, the dup2 syscall is being used. Unfortunately, my system (Ubuntu 24.04.1 LTS, arm64 architecture) does not support dup2, and this is causing issues.
Could you please update the code to use dup3 instead? Alternatively, using close() followed by dup() would also work as a solution.
Let me know if you need further details or assistance with this!
Thanks!
The text was updated successfully, but these errors were encountered: