Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Wed, 30 May 2001 09:56:38 -0400 From: Christopher Faylor To: Cygwin Subject: Re: UNIX-socket problems under cygwin 1.3.2 Message-ID: <20010530095638.D17603@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: Cygwin References: <1888116520 DOT 20010529164542 AT logos-m DOT ru> <000001c0e8ce$2f8eab40$6e032bb7 AT BRAMSCHE> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <000001c0e8ce$2f8eab40$6e032bb7@BRAMSCHE>; from Ralf.Habacker@saght.tessag.com on Wed, May 30, 2001 at 08:03:02AM +0200 On Wed, May 30, 2001 at 08:03:02AM +0200, Ralf Habacker wrote: >> >> RH> I have figured out another problem on cygwin 1.3.2. On ported >> kde 1.1.2 unix >> RH> sockets doesn't work right. The function accept() returns an >> error. Starting >> RH> this application under cygwin 1.1.8-2 it works. Starting the >> app with strace >> RH> or gdb works. >> >> RH> Does anyone have some hints ? >> >> if you'd be more specific of what error accept() returns, or tell when >> it returns an error -- when called, or on incoming connection, or even >> (gasp) provide a testcase, someone surely may help. > >I have found this > >socket(PF_UNIX,SOCK_STREAM,0) = 5 >connect(5,unix_addr.sun_path=/tmp//kfm_1002_1068BRAMSCHE_0.0,size)=okay >... >later >.... >newsock = accept (sock, (struct sockaddr *) &clientname, &size)) >Error accepting (UNIX) sock = 5 new_sock=-1 errno=113 > >It is curious, that if starting this app (kpanel) like below, no errors >occurres. > > strace kpanel >/dev/null > >It seems to me, that there are some correlations between strace printing >code and functionality of some cygwin_accept() sub functions. Perhaps some >statements are only executed while stracing. > >If you need some additional informations tell me and I will look. Sure, some additional information in this case would be the lines of code in question. There is no need to speculate on the behavior of strace when you have the ability to read the source code. cgf -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple