From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4474 invoked by alias); 13 Aug 2019 10:49:17 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 1378 invoked by uid 89); 13 Aug 2019 10:49:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-101.8 required=5.0 tests=AWL,BAYES_50,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=NOTIFY, advance!, ltr, onep"This X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 Aug 2019 10:49:13 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N3bnP-1iNZv43pg3-010ZYR; Tue, 13 Aug 2019 12:49:09 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 76D97A80734; Tue, 13 Aug 2019 12:49:09 +0200 (CEST) Date: Tue, 13 Aug 2019 10:49:00 -0000 From: Corinna Vinschen To: nilesh gharde Cc: cygwin@cygwin.com Subject: Re: mq_notify api of mqueue.h does not work Message-ID: <20190813104909.GV11632@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: nilesh gharde , cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4ds4tGy7aNC8MgBu" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-08/txt/msg00157.txt.bz2 --4ds4tGy7aNC8MgBu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1629 On Aug 12 23:32, nilesh gharde wrote: > Hi, >=20 > 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. >=20 > Windows Machine: > $ ls -ltr > total 4 > -rw-r--r-- 1 ngharde Domain Users 1296 Aug 11 17:58 Niles > $ cat Niles > d=E2=96=92=E2=96=921F734DB930DC569D000000001B1061BF=E2=96=92) @2tv =E2=96=92=E2=96=92This > is nilesh string onep"This is > nilesh stting two nfnslfn"This is nilesh stting two nfnslfnX=E2=96=92@=E2= =96=92(=E2=96=92 > [When I do cat I see this crap + my added data with send API] >=20 > 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 ] >=20 > 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 >=20 > Thanks in advance! Can you please create a simple, self-contained testcase in plain C? Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer --4ds4tGy7aNC8MgBu Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl1SlaUACgkQ9TYGna5E T6BD9g//ZgXmSNkC3W7ecvBi2uZSsc80RopK7u0TH65SoJgGbzpYceqQcq5wkT94 HbeJMYEiPsdrQ7oNBHpDywY6QQTzVuuXwHmdO3xGGeEvupChQntdPkWq8d7FANuT vbp5lQQ24JWJ2YJICe/7u42W3uRdM9Dxyaz+4/1Gl+iN6M6DayviB7cvXX3IUeEo ZDFFT/GuFnTCKE+T+kpj7Zd7/reOTswqdaa2LhcKVG5z+pQzleL7Qq5te6T24Rbr grjA7NJonv2/I42uwXFEo7G15zJzHYquMGV1snUYqIvwW8uxJejCHNO+dcKf12uj O/dv3XOPY5+dZvfDYhH850Hl+Nl/gW+RRFZ+gIi/evH1BTrVfPO0hWTDXlhXTj3y XhLkZyxtnpYRnOTLUiNlTfSbViJiO7aytoRTwbRxQSvFnhZDHD66C70L9AJWpJsQ rZdKkBrJHQhgAMYwok87MfDNu3DUbCHXVXR2X+aaeBEGXuWkR7nes+vW/60Uj+t6 gMLdnt5DEnqcZvmkNZTjV2zAr6sCj+aCjRXwwN+uDImhWULg/YrA9jwYdpnI3gi/ HlSnHX/sybcf9AuyyACQmiWTugBc0mts5cwo5Vy7nXkJCOd/vep9nHHHiZb/14fa MWIinn/wjwXA27cnhcouV8t3YYuJNsIZLSUttVqmy8blBhIqS0w= =/6Yj -----END PGP SIGNATURE----- --4ds4tGy7aNC8MgBu--