delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/30/11:24:43

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Ralf Habacker" <Ralf DOT Habacker AT saght DOT tessag DOT com>
To: "Cygwin" <cygwin AT cygwin DOT com>
Cc: "egor duda" <cygwin AT cygwin DOT com>
Subject: AW: UNIX-socket problems under cygwin 1.3.2
Date: Wed, 30 May 2001 08:03:02 +0200
Message-ID: <000001c0e8ce$2f8eab40$6e032bb7@BRAMSCHE>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
Importance: Normal
In-Reply-To: <1888116520.20010529164542@logos-m.ru>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

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

Regards
Ralf


> AF_UNIX socket code had been changed since 1.1.8, but so far there were no
> known ill effects of those changes.
>
> Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19
>
>
>
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple
>
>


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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