X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; q=dns; s=default; b=ohy jkVkGTbozs4ym7MCwF2HC9rkLAPtM96FTUucgEYM0A90ITAJeX+mDpRmTevtBkKw UC4nkEeu3cl1hU9DGIp6vPOjsjUyRjgI0S/ejWAle1RI4VlQvvyeDCAVhcQ221zx CEHscjjFlNbTglS+tM/V+z+DMgp2BtrvVaYj66Yc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; s=default; bh=qjw0s8jIx juUjhFDLkjBRbFnY4M=; b=x0M6m24qlzfVDr8/0mgePdguNRhfXAXZaUbOZP6/o uWnHXcOz1r50rfnn87Gb4Mk/LIo6+/UQyJehJCHP+Q/EChlPW8YJDFwmVoEZiOKP /Vqqo2ve6qqtf8bU6UBpldFm2FAeupTcV62Xu4Z0wkfbECOjE6rqf5xqgbYjWCQQ yo= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,HTML_OBFUSCATE_05_10,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=NOTIFY, advance!, sk:persona, Niles X-HELO: mail-ot1-f67.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=XenvA1Nk5GQYFEUBWd2MmJf6h4Z46gh7/MlQO2mqSb8=; b=sYfXA7XzaMTX3pU2xSa6+sHJqO+w1GRfpXui3dUCNQlBrA8gNAHoXFldyy9v1MOjmM 4P5YP+xuk9BYd/Wx9Vn1whIVCttfXLNnPI98DqLbMwxCZTD3bYBYv1P0xBjIgMEK48TY /QZRbJWvoRUmCJFrr48M1ZvDLLFBdD0JoqFS/Q+ODWgaiCDL8yL6YUAVFzmYA1gv2t4q RMX3TU0cytYwpVMkLhiSrI9FmUX/q5tLlYfMVsKwjPt83oq5dB5u1YUDGr85p15Z7S3k Y2bFOSV6LYakdnZSwP/xNaYE94Xh7JTcjUBX6XuKaso/HEwJQnuyYL18GARYnCok9WCU TNfA== MIME-Version: 1.0 From: nilesh gharde Date: Mon, 12 Aug 2019 23:32:05 +0530 Message-ID: Subject: mq_notify api of mqueue.h does not work To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x7CI2reN030732 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 ▒▒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