Skip to content

missing ‘msgget’ system call! #1443

Closed

Description

@QinHuasong

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:
_

  1. int msgqid = -1;
  2. msgqid = msgget(key, 0666 | IPC_CREAT);
    _

Rich Turner (@bitcrazed)
I've @ you on twitter . Appreciate your reply.

Activity

  1. therealkenc commented on Dec 1, 2016

    @therealkenc
  2. stehufntdev commented on Dec 1, 2016

    @stehufntdev

    Closing this out as a duplicate of #1016 so we can track the issue there.

  3. benhillis commented on Jul 5, 2017

    @benhillis
    Member

    Reopening this issue since this is the only piece of the System V family of system calls that is still unimplemented.

  4. rodar21 commented on Aug 2, 2017

    @rodar21

    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.

  5. yeedog commented on Feb 19, 2018

    @yeedog

    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.

  6. oshz commented on Mar 1, 2018

    @oshz

    Same issue here, mq_open() returning with "Function not implemented"

  7. bitcrazed commented on Mar 4, 2018

    @bitcrazed
    Contributor

    Omair (@oshz) AS Ben Hillis (@benhillis) says above - we've not yet implemented Queue support

  8. oshz commented on Mar 5, 2018

    @oshz

    Rich Turner (@bitcrazed) Thanks. Any plans on getting this implemented?

  9. hippiehunter commented on May 17, 2018

    @hippiehunter

    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.

  10. therealkenc commented on May 17, 2018

    @therealkenc

    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.

  11. WeirdBob commented on Jul 12, 2018

    @WeirdBob

    Hi Ben Hillis (@benhillis) Rich Turner (@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!

  12. bitcrazed commented on Jul 12, 2018

    @bitcrazed
    Contributor

    Hey Bob! I'll leave feature scheduling/planning decisions to Tara Raj (@tara-raj) and Ben Hillis (@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 :)

  13. tara-raj commented on Jul 12, 2018

    @tara-raj

    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.

  14. yeedog commented on Jul 12, 2018

    @yeedog

    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.

  15. Snapstromegon commented on Jun 11, 2019

    @Snapstromegon

    It's been a while - is there any progress on this?

  16. edsyl commented on Aug 28, 2019

    @edsyl

    It will be fixed in WSL 2: https://devblogs.microsoft.com/commandline/announcing-wsl-2/.

    Apparently not as it still breaks on Buildroot builds.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions