X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
References: <664689.45021.qm@web8909.mail.in.yahoo.com>
Subject: RE: Problem with Message Queue
Date: Tue, 27 Mar 2007 10:41:50 +0100
Message-ID: <02f701c77054$24d48620$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <664689.45021.qm@web8909.mail.in.yahoo.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 27 March 2007 05:05, seema r j wrote:

> Hi All,
> I have an application which uses IPC functionalities for sending and
> receiving messages from other application. I have made the following
> configuration for message queue, shared memory and semaphore  
> 
> MSGINFO:
> MSGMAX:    4096
> MSGMNI:    50
> MSGTQL:    400
> MSGMAP:    402
> MSGMNB:    16384
> 
> SEMINFO:
> SEMMNI:    200
> SEMMNS:    128
> SEMMNU:    150
> 
> SHMINFO:
> SHMMNI:    100
> SHMMAX:    2000000
> 
> When I run through my application, it will give successful response for  3
> messages out 5 messages and my client application hangs. My Error log file
> has recorded the following statements:  
> 
> CU-E-3404(3196):Unable to Send Communication Packet (CUP) on Queue.
> msgsnd-E-3011(3196):EAGAIN No more processes.
> 
> So please... can any one suggest where m going wrong and please give me the
> possible solutions for it. 

  Well, it should be completely obvious from all that information to anyone
but a fool that the bug is on line 4373 of your application, where you have
mistyped a semi-colon as a commma, thus turning a statement into a
comma-series expression and thereby extending the scope of the preceding 'if'
to encompass the following subroutine call.

  Either that, or a hippo ate it.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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

