delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/09/05:41:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Mime-Version: 1.0 (Apple Message framework v619.2)
In-Reply-To: <20050409091811.GT1471@cygbert.vinschen.de>
References: <20050401160749 DOT GH1471 AT cygbert DOT vinschen DOT de> <4250E410 DOT 1060708 AT smousseland DOT com> <20050404103824 DOT GS1471 AT cygbert DOT vinschen DOT de> <9305417ca9a2f2601ad20b83801d2f92 AT smousseland DOT com> <20050404142507 DOT GT1471 AT cygbert DOT vinschen DOT de> <5c59a962471bd65c3c3f3f44c37b8bf3 AT smousseland DOT com> <20050406111752 DOT GG1471 AT cygbert DOT vinschen DOT de> <c354d01fa19910e21fe067e9ec1745ce AT smousseland DOT com> <20050408205745 DOT GQ1471 AT cygbert DOT vinschen DOT de> <86032b7972f91acc07b53ed43999a665 AT smousseland DOT com> <20050409091811 DOT GT1471 AT cygbert DOT vinschen DOT de>
Message-Id: <dfbfe236b2bca9978739a65d38a41cea@smousseland.com>
From: Vincent Dedun <kraken AT smousseland DOT com>
Subject: Re: ipc, sockets and windows sp2
Date: Sat, 9 Apr 2005 11:40:09 +0200
To: cygwin AT cygwin DOT com

>
>
>> There is a strange stuff, but it won't perturb me :
>> when i run my master/slaves programs, then run the testcase at the 
>> same
>> time and kill it, the slave may have a socket read error if it was
>> reading on the socket at the same time that testcase is launched.
>
> I'm wondering if that's realy related or just a coincidence.  Sockets
> have nothing to do with IPC, unless you're running on 9x, where the
> Cygserver/Client connection is done using sockets.

but it has to do with file descriptors.
I could reproduce it several time, each time the socket read error 
occurs when the testcase is running.
It may not be an IPC issue, but a fork issue.


>
>> So i have to tune slave so i don't quit on socket read, but retry to
>> read on the socket, and it's fine, as the socket read will fail only
>> when the testcase is launched.
>
> What's the error code you get?

read just return less byte than expected, and it occurs only in this 
case.


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019