public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* mq_notify api of mqueue.h does not work
@ 2019-08-12 18:02 nilesh gharde
  2019-08-13 10:49 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: nilesh gharde @ 2019-08-12 18:02 UTC (permalink / raw)
  To: cygwin

Hi,

I am using windows 10 and installed msys2 which internally uses "Cygwin
code base" to have ENV same as my linux machine.
I have implemented an IPC mechanism based on mqueue Apis. I see few mqueue
api's work properly like create and send as I can see the "/my_queue_name"
gets created under "/dev/mqueue/my_queue_name" and I see some data which I
put there. But I see the behavior is kind of diff with msys2 on windows.

Windows Machine:
$ ls -ltr
total 4
-rw-r--r-- 1 ngharde Domain Users 1296 Aug 11 17:58 Niles
$ cat Niles
d▒▒1F734DB930DC569D000000001B1061BF▒) @2tv <https://github.com/2tv>▒▒This
is nilesh string onep"This is
nilesh stting two nfnslfn"This is nilesh stting two nfnslfnX▒@▒(▒
[When I do cat I see this crap + my added data with send API]

LINUX machine Ubuntu 16.04.6 LTS
>ls -ltr
total 0
-rw-r--r-- 1 ngharde users 80 Aug 5 19:27 Niles
> cat Niles
QSIZE:0 NOTIFY:0 SIGNO:0 NOTIFY_PID:0
[Here I see info. about which PID is kind of waiting on this queue to get
notified ]

The behavior where a process subscribe to get notified if there some msg in
the queue kind of works correctly in my Linux machine, but on windows with
msys2 that behavior I am not able to achieve.
code path:
https://github.com/Nilesh1992/Personal_Project/blob/master/mq_ipc/src/mq_ipccore.cpp

Thanks in advance!

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mq_notify api of mqueue.h does not work
  2019-08-12 18:02 mq_notify api of mqueue.h does not work nilesh gharde
@ 2019-08-13 10:49 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2019-08-13 10:49 UTC (permalink / raw)
  To: nilesh gharde; +Cc: cygwin

[-- Attachment #1: Type: text/plain, Size: 1607 bytes --]

On Aug 12 23:32, nilesh gharde wrote:
> Hi,
> 
> I am using windows 10 and installed msys2 which internally uses "Cygwin
> code base" to have ENV same as my linux machine.
> I have implemented an IPC mechanism based on mqueue Apis. I see few mqueue
> api's work properly like create and send as I can see the "/my_queue_name"
> gets created under "/dev/mqueue/my_queue_name" and I see some data which I
> put there. But I see the behavior is kind of diff with msys2 on windows.
> 
> Windows Machine:
> $ ls -ltr
> total 4
> -rw-r--r-- 1 ngharde Domain Users 1296 Aug 11 17:58 Niles
> $ cat Niles
> d▒▒1F734DB930DC569D000000001B1061BF▒) @2tv <https://github.com/2tv>▒▒This
> is nilesh string onep"This is
> nilesh stting two nfnslfn"This is nilesh stting two nfnslfnX▒@▒(▒
> [When I do cat I see this crap + my added data with send API]
> 
> LINUX machine Ubuntu 16.04.6 LTS
> >ls -ltr
> total 0
> -rw-r--r-- 1 ngharde users 80 Aug 5 19:27 Niles
> > cat Niles
> QSIZE:0 NOTIFY:0 SIGNO:0 NOTIFY_PID:0
> [Here I see info. about which PID is kind of waiting on this queue to get
> notified ]
> 
> The behavior where a process subscribe to get notified if there some msg in
> the queue kind of works correctly in my Linux machine, but on windows with
> msys2 that behavior I am not able to achieve.
> code path:
> https://github.com/Nilesh1992/Personal_Project/blob/master/mq_ipc/src/mq_ipccore.cpp
> 
> Thanks in advance!

Can you please create a simple, self-contained testcase in plain C?


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-13 10:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-12 18:02 mq_notify api of mqueue.h does not work nilesh gharde
2019-08-13 10:49 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).