Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 X-Authentication-Warning: atacama.four-d.de: mail set sender to using -f Message-ID: <3E34E7D6.8010306@gmx.net> Date: Mon, 27 Jan 2003 09:03:34 +0100 From: Thomas Pfaff User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Elliot Mednick CC: cygwin AT cygwin DOT com Subject: Re: Mmap and semaphores? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Please check the sem_init return code first. Cygwin does not support process shared semaphores at the moment. Thomas Elliot Mednick wrote: > Hello, > > I'm try to write a client server application that used shared memory and > asemaphores. Appended is a simple test case. It works under Solaris > using the -lposix4 library. But it doesn't work under Cygwin. Given > the lack of any otherquestions about this, I imagine that I'm doing > something wrong, or it's functionality is limited. > > The server maps a file as shared, inits a semaphore, then waits. The > client, which you start after the server waits, shares the same file > (this part works) and attempts to post the semaphore. The server ought > to -- but doesn't -- wake up. It does in Solaris. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/