missing ‘msgget’ system call!
I've tried WSL , my apps can be compiled correctly. But when I execute , it says "msgget: Operation not supported". while my source code is like this: _
- int msgqid = -1;
- msgqid = msgget(key, 0666 | IPC_CREAT); _
@bitcrazed I've @ you on twitter . Appreciate your reply.
#1016 (message)
Closing this out as a duplicate of #1016 so we can track the issue there.
Reopening this issue since this is the only piece of the System V family of system calls that is still unimplemented.
Yes we need this as its fundamental to our runtime and messaging systems used by some of our fortune level customers. (msgget etc). it precludes any of our customers using WSL.
Has there been any update to this issue?
I need to use posix message queues for work and while I can run on the target hardware, being able to test things out in the WSL is often faster than cross compiling and loading code.
So msgget and mq_open type methods do not work right now.
Same issue here, mq_open() returning with "Function not implemented"
@oshz AS @benhillis says above - we've not yet implemented Queue support
@bitcrazed Thanks. Any plans on getting this implemented?
msgget is very important to my company. When built for linux, our product uses queues to talk between long running processes and short lived ones. Transitioning this to use sockets lead to a massive performance hit when we tried it in the past. We're trying to move our customers to do all of their development work on windows (even if they ultimately test/deploy on linux) to take advantage of visual studio as much as possible. Having this issue fixed would make this push significantly easier.
Transitioning this to use sockets lead to a massive performance hit when we tried it in the past.
You are operating under the unsupported assumption that WSL's mq implementation will yield the same outcome. It might. It might not. There is no technical reason why a socketpair() would perform worse (or better for that matter). Either way you're crossing a syscall barrier. All of Electron (and ∴ VS Code) uses sockets and event fds for IPC. If there was a "massive performance hit" they probably wouldn't have gone that route; because it matters. If performance is what you are aiming for, mmap() some shared memory and put a futex() on it. But if you are migrating from native Linux to WSL, and your app does any kind of IO, you almost certainly have bigger performance fish to fry than message queues.
In any case, I hope this gets implemented for completeness. It is what your code uses, and that's plenty reason enough. But performance? I'll have to take your word for it.
Hi @benhillis @bitcrazed , any news on this? I can imagine this is not the most important feature you have to implement but for some of us this is a show stopper. That's too bad because WSL is really impressive and I'm looking forward to ditching my last VMs!
Hey Bob! I'll leave feature scheduling/planning decisions to @tara-raj and @benhillis & team.
But yeah, I agree it'd be great to get this family of syscalls built-out :D It's mostly "just" a matter of resources x schedule x prioritization :)
Thanks for raising this. In general, we've been implementing syscalls on a per-need basis. Based on the feedback from this thread, we've started the work needed to implement this syscall. It is a fairly large change, so this is still "in the pipeline." I will update this thread when the work is complete and flighted.
As @bitcrazed mentioned the time taken for you to see this change will mainly depend on our ship schedule and other priorities.
Awesome. I'm glad message queues are going to be implemented in a future version as this was one feature that was holding me.back from fully embracing wsl for everyday development.
While wsl is not my target it is extremely useful for development with clion and initial testing. Then only running on the target hardware to get final results.
It's been a while - is there any progress on this?
It will be fixed in WSL 2: https://devblogs.microsoft.com/commandline/announcing-wsl-2/.
It will be fixed in WSL 2: https://devblogs.microsoft.com/commandline/announcing-wsl-2/.
Apparently not as it still breaks on Buildroot builds.