From owner-freebsd-hackers Thu Sep 3 17:05:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA21918 for freebsd-hackers-outgoing; Thu, 3 Sep 1998 17:05:10 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from paprika.michvhf.com (paprika.michvhf.com [209.57.60.12]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id RAA21906 for ; Thu, 3 Sep 1998 17:05:05 -0700 (PDT) (envelope-from vev@michvhf.com) Received: (qmail 5462 invoked by uid 1000); 4 Sep 1998 00:04:25 -0000 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Thu, 03 Sep 1998 20:04:25 -0400 (EDT) From: Vince Vielhaber To: freebsd-hackers@FreeBSD.ORG Subject: msgrcv, msgsnd, msgctl Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Is/has anyone done anything with message queues? I'm porting an in house application - nothing special, listen to a port for info on turning on a fan, passing a message via msgsnd to the app that handles all requests and updating a memory map so that another app can update a PLC to change the register settings in our HVAC system. All three routines are rather small and appear to be functioning with the exception of the msg* functions. After trying a few different things, I tried to kill the queue with msgctl and got a surprise. Msgsnd appears to send the message and reports no problems; msgrcv hangs (unless in NOWAIT mode) waiting for a message that never comes no matter how many times it was sent; and msgctl returns the error code ENOENT which according to the man page and source code should not be possible. This is with 2.2.6-RELEASE. Does anyone have any idea what could be going on? Yes I have 'options SYSVMSG' in the kernel. And since this is technical, I figure it belongs on this list! Vince. -- ========================================================================== Vince Vielhaber -- KA8CSH email: vev@michvhf.com flame-mail: /dev/null # include TEAM-OS2 Online Searchable Campground Listings http://www.camping-usa.com "There is no outfit less entitled to lecture me about bloat than the federal government" -- Tony Snow ========================================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message