delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/20/11:06:03

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
Message-Id: <009201c141e5$9c3c0560$d50b19ac@LSIL.COM>
From: "Phil Dempster" <dempster AT lsil DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Cygwin 1.3.3: Win2K: select() returning EBADF (causes thrashing in Boa)
Date: Thu, 20 Sep 2001 16:02:21 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

------=_NextPart_000_008F_01C141ED.A14D3210
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: 7bit

I've compiled boa (http//www.boa.org) under Cygwin and it seems to work
(incidentally much better than it did with 1.3.2).

However, the select() call in Boa's main loop continually fails with
errno==EBADF.  Whilst this doesn't actually break it functionally, it does
cause it to thrash taking up 99% CPU time.

            if (select(OPEN_MAX, &block_read_fdset,
                       &block_write_fdset, NULL,
                       (request_block ? &req_timeout : NULL)) == -1) {
                /* what is the appropriate thing to do here on EBADF */
                if (errno == EINTR)
                    continue;   /* while(1) */
                else if (errno != EBADF) {
                    log_error_mesg(__FILE__, __LINE__, "select");
                    exit(errno);
                }
            }

Thoughts?

Regards,
Phil


------=_NextPart_000_008F_01C141ED.A14D3210
Content-Type: application/octet-stream;
	name="cygcheck.out"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="cygcheck.out"

=0A=
Cygnus Win95/NT Configuration Diagnostics=0A=
Current System Time: Thu Sep 20 15:49:40 2001=0A=
=0A=
WinNT Ver 5.0 build 2195 Service Pack 2=0A=
=0A=
Path:	/usr/local/bin=0A=
	/usr/bin=0A=
	/bin=0A=
	/cygdrive/c/WINNT/system32=0A=
	/cygdrive/c/WINNT=0A=
	/cygdrive/c/WINNT/System32/Wbem=0A=
	/usr/bin=0A=
	/cygdrive/c/Progra~1/Rational/ClearCase/bin=0A=
	.=0A=
=0A=
SysDir: C:\WINNT\System32=0A=
WinDir: C:\WINNT=0A=
=0A=
PWD =3D `/home/dempster'=0A=
CYGWIN =3D `ntsec tty'=0A=
USER =3D `dempster'=0A=
MAKE_MODE =3D `unix'=0A=
HOME =3D `/home/dempster'=0A=
=0A=
NUMBER_OF_PROCESSORS =3D `1'=0A=
PROMPT =3D `$P$G'=0A=
LOGONSERVER =3D `\\<SERVER>'=0A=
OS2LIBPATH =3D `C:\WINNT\system32\os2\dll;'=0A=
COMSPEC =3D `C:\WINNT\system32\cmd.exe'=0A=
!C: =3D `C:\cygwin\bin'=0A=
SYSTEMDRIVE =3D `C:'=0A=
HOSTNAME =3D `CAMPC004'=0A=
PROCESSOR_REVISION =3D `0806'=0A=
PATHEXT =3D `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'=0A=
COMPUTERNAME =3D `CAMPC004'=0A=
WINDIR =3D `C:\WINNT'=0A=
USERPROFILE =3D `C:\Documents and Settings\dempster.<DOMAIN>'=0A=
HTMLDOC_DATA =3D `C:\cygwin\usr\local\htmldoc'=0A=
PS1 =3D `\[\033]0;\w\007=0A=
\033[32m\]\u@\h \[\033[33m\w\033[0m\]=0A=
$ '=0A=
PROGRAMFILES =3D `C:\Program Files'=0A=
MACHTYPE =3D `i686-pc-cygwin'=0A=
PROCESSOR_IDENTIFIER =3D `x86 Family 6 Model 8 Stepping 6, GenuineIntel'=0A=
WIN32DMIPATH =3D `C:\DMI\'=0A=
OS =3D `Windows_NT'=0A=
OLDPWD =3D `/usr/local/boa-0.94.9/src'=0A=
PROCESSOR_ARCHITECTURE =3D `x86'=0A=
TEMP =3D `/cygdrive/c/DOCUME~1/DEMPST~1.LSI/LOCALS~1/Temp'=0A=
PROCESSOR_LEVEL =3D `6'=0A=
SYSTEMROOT =3D `C:\WINNT'=0A=
HOMEDRIVE =3D `C:'=0A=
ALLUSERSPROFILE =3D `C:\Documents and Settings\All Users'=0A=
SHLVL =3D `1'=0A=
APPDATA =3D `C:\Documents and Settings\dempster.<DOMAIN>\Application =
Data'=0A=
COMMONPROGRAMFILES =3D `C:\Program Files\Common Files'=0A=
HOMEPATH =3D `\'=0A=
USERDOMAIN =3D `<DOMAIN>'=0A=
USERNAME =3D `dempster'=0A=
SHELL =3D `/bin/bash'=0A=
HOSTTYPE =3D `i686'=0A=
OSTYPE =3D `cygwin'=0A=
TERM =3D `cygwin'=0A=
_ =3D `/usr/bin/cygcheck'=0A=
TZ =3D `GMTST0GMTDT-1,M3.5.0/1,M10.5.0/2'=0A=
=0A=
HKEY_CURRENT_USER\Software\Cygnus Solutions=0A=
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin=0A=
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2=0A=
  (default) =3D `/cygdrive'=0A=
  cygdrive flags =3D 0x00000022=0A=
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/dev/fd0=0A=
  (default) =3D `\\.\a:'=0A=
  flags =3D 0x00000002=0A=
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options=0A=
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Menu=
Order\Start Menu\Programs\Cygnus Solutions=0A=
  (default) =3D (unsupported type)=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/=0A=
  (default) =3D `C:/cygwin'=0A=
  flags =3D 0x0000000a=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin=0A=
  (default) =3D `C:/cygwin/bin'=0A=
  flags =3D 0x0000000a=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib=0A=
  (default) =3D `C:/cygwin/lib'=0A=
  flags =3D 0x0000000a=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options=0A=
=0A=
a:  fd           N/A    N/A                    =0A=
c:  hd  NTFS   19085Mb  21% CP CS UN PA FC     PC04_C=0A=
d:  cd           N/A    N/A                    =0A=
m:  net MVFS    1000Mb  50% CP CS              CCase=0A=
s:  net NTFS   12080Mb  63% CP CS    PA        shared=0A=
u:  net NTFS   12080Mb  63% CP CS    PA        home=0A=
w:  net NTFS    3250Mb  77% CP CS    PA        workspace=0A=
y:  net MVFS    1000Mb  50% CP CS              CCase=0A=
z:  net MVFS    1000Mb  50% CP CS              CCase=0A=
=0A=
C:\cygwin\bin  /usr/bin  system  binmode=0A=
C:\cygwin\lib  /usr/lib  system  binmode=0A=
C:\cygwin  /        system  binmode=0A=
\\.\a:  /dev/fd0  user    binmode=0A=
c:    /cygdrive/c  user    binmode,noumount=0A=
m:    /cygdrive/m  user    binmode,noumount=0A=
s:    /cygdrive/s  user    binmode,noumount=0A=
u:    /cygdrive/u  user    binmode,noumount=0A=
w:    /cygdrive/w  user    binmode,noumount=0A=
y:    /cygdrive/y  user    binmode,noumount=0A=
z:    /cygdrive/z  user    binmode,noumount=0A=
=0A=
Found: C:\cygwin\bin\bash.exe=0A=
Found: C:\cygwin\bin\cat.exe=0A=
Found: C:\cygwin\bin\cpp.exe=0A=
Found: C:\cygwin\bin\find.exe=0A=
Found: C:\cygwin\bin\gcc.exe=0A=
Found: C:\cygwin\bin\gdb.exe=0A=
Found: C:\cygwin\bin\ld.exe=0A=
Found: C:\cygwin\bin\ls.exe=0A=
Found: C:\cygwin\bin\make.exe=0A=
Found: C:\cygwin\bin\sh.exe=0A=
=0A=
   56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygbz21.0.dll" v0.0 ts=3D2000/11/20 23:53=0A=
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygform5.dll" v0.0 ts=3D2001/4/25 6:28=0A=
   18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cyggdbm.dll" v0.0 ts=3D2000/10/23 3:26=0A=
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cyghistory4.dll" v0.0 ts=3D2001/1/7 4:34=0A=
   21k 2001/06/28 C:\cygwin\bin\cyghistory5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cyghistory5.dll" v0.0 ts=3D2001/6/28 3:27=0A=
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygintl.dll" v0.0 ts=3D2001/6/20 18:09=0A=
   81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygitcl30.dll" v0.0 ts=3D2000/11/26 1:43=0A=
   35k 2000/12/05 C:\cygwin\bin\cygitk30.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygitk30.dll" v0.0 ts=3D2000/11/26 1:43=0A=
   45k 2001/07/04 C:\cygwin\bin\cygjbig1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygjbig1.dll" v0.0 ts=3D2001/7/4 4:25=0A=
  119k 2001/06/06 C:\cygwin\bin\cygjpeg6b.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygjpeg6b.dll" v0.0 ts=3D2001/6/6 5:27=0A=
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygmenu5.dll" v0.0 ts=3D2001/4/25 6:27=0A=
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygncurses++5.dll" v0.0 ts=3D2001/4/25 6:29=0A=
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygncurses5.dll" v0.0 ts=3D2001/4/25 6:17=0A=
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygpanel5.dll" v0.0 ts=3D2001/4/25 6:27=0A=
  163k 2001/05/06 C:\cygwin\bin\cygpng2.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygpng2.dll" v0.0 ts=3D2001/5/6 5:05=0A=
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygreadline4.dll" v0.0 ts=3D2001/1/7 4:34=0A=
  135k 2001/06/28 C:\cygwin\bin\cygreadline5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygreadline5.dll" v0.0 ts=3D2001/6/28 3:27=0A=
  390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygtcl80.dll" v0.0 ts=3D2000/11/26 1:39=0A=
    5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
   10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygtclreg80.dll" v0.0 ts=3D2000/11/26 1:39=0A=
  245k 2001/06/12 C:\cygwin\bin\cygtiff3.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygtiff3.dll" v0.0 ts=3D2001/6/12 18:25=0A=
  623k 2000/12/05 C:\cygwin\bin\cygtk80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygtk80.dll" v0.0 ts=3D2000/11/26 1:43=0A=
   41k 2001/07/04 C:\cygwin\bin\cygXpm-noX4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygXpm-noX4.dll" v0.0 ts=3D2001/7/4 2:21=0A=
   45k 2001/07/04 C:\cygwin\bin\cygXpm-X4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygXpm-X4.dll" v0.0 ts=3D2000/11/20 2:45=0A=
   49k 2001/02/03 C:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0=0A=
                  "cygz.dll" v0.0 ts=3D2001/2/3 20:35=0A=
  701k 2001/09/13 C:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygwin1.dll" v0.0 ts=3D2001/9/13 4:54=0A=
    Cygwin DLL version info:=0A=
        dll major: 1003=0A=
        dll minor: 3=0A=
        dll epoch: 19=0A=
        dll bad signal mask: 19005=0A=
        dll old termios: 5=0A=
        dll malloc env: 28=0A=
        api major: 0=0A=
        api minor: 46=0A=
        shared data: 3=0A=
        dll identifier: cygwin1=0A=
        mount registry: 2=0A=
        cygnus registry name: Cygnus Solutions=0A=
        cygwin registry name: Cygwin=0A=
        program options name: Program Options=0A=
        cygwin mount registry name: mounts v2=0A=
        cygdrive flags: cygdrive flags=0A=
        cygdrive prefix: cygdrive prefix=0A=
        cygdrive default prefix: =0A=
        build date: Wed Sep 12 23:54:31 EDT 2001=0A=
        shared id: cygwin1S3=0A=
=0A=
Use -h to see help about each section=0A=


------=_NextPart_000_008F_01C141ED.A14D3210
Content-Type: text/plain; charset=us-ascii

--
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/
------=_NextPart_000_008F_01C141ED.A14D3210--

- Raw text -


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