Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sources.redhat.com/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 Date: Mon, 3 Jun 2002 14:20:36 -0400 (EDT) From: David E Euresti <davie AT MIT DOT EDU> To: <cygwin AT cygwin DOT com> Subject: Re: Socket Handles duplicated twice after fork Message-ID: <Pine.GSO.4.30L.0206031415390.8254-100000@department-of-alchemy.mit.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII This is in response to an old post. The basic problem is that after a fork the child gets four open socket handles instead of only two. This code shows the problem slightly. You need Process explorer to see the problem. #include <unistd.h> #include <io.h> #include <sys/socket.h> #include <stdio.h> int main() { int fds[2]; int pid; socketpair (AF_UNIX, SOCK_STREAM, 0, fds); pid = fork (); if (pid == 0) { printf("Child: Sockets are 0x%x 0x%x\n", get_osfhandle(fds[0]), get_osfhandle(fds[1])); sleep(1); } else { printf("Parent: Sockets are 0x%x 0x%x\n", get_osfhandle(fds[0]), get_osfhandle(fds[1])); sleep(1); } } I have fixed this in my program by storing the osfhandles and then closing them manually (using CloseHandle) after the fork. However I don't think this is something that a programmer should worry about. And here is the strace -f output: ********************************************** Program name: C:\cygwin\home\davie\tests\fork\a.exe (1820) App version: 1003.10, api: 0.51 DLL version: 1003.10, api: 0.51 DLL build: 2002-02-25 11:14 OS version: Windows NT-5.0 Date/Time: 2002-06-03 14:13:36 ********************************************** 828 1575 [main] a 1820 environ_init: 0xA010420: !::=::\ 186 1761 [main] a 1820 environ_init: 0xA010430: !C:=C:\cygwin\bin 155 1916 [main] a 1820 environ_init: 0xA010448: ALLUSERSPROFILE=C:\Documents and Settings\All Users 147 2063 [main] a 1820 environ_init: 0xA010480: APPDATA=H:\WinData\Application Data 145 2208 [main] a 1820 environ_init: 0xA0104A8: ATHENA_SYS=i386_nt40 147 2355 [main] a 1820 environ_init: 0xA0104C8: BASEMAKE=C:\Program Files\Microsoft Platform SDK\Include\BKOffice.Mak 1087 3442 [main] a 1820 environ_init: 0xA010518: BKOFFICE=C:\Program Files\Microsoft Platform SDK\ 191 3633 [main] a 1820 environ_init: 0xA010550: COMMONPROGRAMFILES=C:\Program Files\Common Files 143 3776 [main] a 1820 environ_init: 0xA010588: COMPUTERNAME=PISMERE-1 135 3911 [main] a 1820 environ_init: 0xA0105A8: COMSPEC=C:\WINNT\system32\cmd.exe 132 4043 [main] a 1820 environ_init: 0xA0105D0: CPU=i386 130 4173 [main] a 1820 environ_init: 0xA0105E0: DDKROOT=c:\NTDDK 130 4303 [main] a 1820 environ_init: 0xA0105F8: DXSDKROOT=C:\Program Files\Microsoft Platform SDK 132 4435 [main] a 1820 environ_init: 0xA010630: FLEXLM_DIAGNOSTICS=2 155 4590 [main] a 1820 getwinenv: can't set native for HOME= since no environ yet 153 4743 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin\home\davie, no-keep-rel, no-add-slash) 86 4829 [main] a 1820 normalize_win32_path: C:\cygwin\home\davie = normalize_win32_path (C:\cygwin\home\davie) 87 4916 [main] a 1820 mount_info::conv_to_posix_path: /home/davie = conv_to_posix_path (C:\cygwin\home\davie) 196 5112 [main] a 1820 win_env::add_cache: posix /home/davie 72 5184 [main] a 1820 win_env::add_cache: native HOME=C:\cygwin\home\davie 75 5259 [main] a 1820 posify: env var converted to HOME=/home/davie 131 5390 [main] a 1820 environ_init: 0xA010670: HOME=/home/davie 132 5522 [main] a 1820 environ_init: 0xA010650: HOMEDRIVE=H: 132 5654 [main] a 1820 environ_init: 0xA0107B0: HOMEPATH=\ 132 5786 [main] a 1820 environ_init: 0xA0107C0: HOMESHARE=\\afs\all\athena.mit.edu\user\d\a\davie 134 5920 [main] a 1820 environ_init: 0xA0107F8: INCLUDE=C:\Program Files\Microsoft Platform SDK\Include;C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE;C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE;C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE; 138 6058 [main] a 1820 environ_init: 0xA0108E0: INETSDK=C:\Program Files\Microsoft Platform SDK 133 6191 [main] a 1820 environ_init: 0xA010918: LIB=C:\Program Files\Microsoft Platform SDK\Lib;C:\Program Files\Microsoft Visual Studio\VC98\LIB;C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB 137 6328 [main] a 1820 environ_init: 0xA0109B8: LOGONSERVER=\\DIN 130 6458 [main] a 1820 environ_init: 0xA0109D0: MAKE_MODE=unix 129 6587 [main] a 1820 environ_init: 0xA0109E8: MANPATH=:/usr/ssl/man 131 6718 [main] a 1820 environ_init: 0xA010A08: MSDEVDIR=C:\Program Files\Microsoft Visual Studio\Common\MSDev98 132 6850 [main] a 1820 environ_init: 0xA010A50: MSSDK=C:\Program Files\Microsoft Platform SDK 131 6981 [main] a 1820 environ_init: 0xA010A88: MSTOOLS=C:\Program Files\Microsoft Platform SDK 131 7112 [main] a 1820 environ_init: 0xA010AC0: MSVCDIR=C:\Program Files\Microsoft Visual Studio\VC98 131 7243 [main] a 1820 environ_init: 0xA010B00: NUMBER_OF_PROCESSORS=1 129 7372 [main] a 1820 environ_init: 0xA010B20: OLDPWD=/home/davie/tests 130 7502 [main] a 1820 environ_init: 0xA010B40: OS2LIBPATH=C:\WINNT\system32\os2\dll; 130 7632 [main] a 1820 environ_init: 0xA010B70: OS=Windows_NT 161 7793 [main] a 1820 getwinenv: can't set native for PATH= since no environ yet 1083 8876 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin\usr\local\bin, keep-rel, no-add-slash) 127 9003 [main] a 1820 normalize_win32_path: C:\cygwin\usr\local\bin = normalize_win32_path (C:\cygwin\usr\local\bin) 87 9090 [main] a 1820 mount_info::conv_to_posix_path: /usr/local/bin = conv_to_posix_path (C:\cygwin\usr\local\bin) 81 9171 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin\bin, keep-rel, no-add-slash) 246 9417 [main] a 1820 normalize_win32_path: C:\cygwin\bin = normalize_win32_path (C:\cygwin\bin) 102 9519 [main] a 1820 mount_info::conv_to_posix_path: /usr/bin = conv_to_posix_path (C:\cygwin\bin) 77 9596 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin\bin, keep-rel, no-add-slash) 77 9673 [main] a 1820 normalize_win32_path: C:\cygwin\bin = normalize_win32_path (C:\cygwin\bin) 74 9747 [main] a 1820 mount_info::conv_to_posix_path: /usr/bin = conv_to_posix_path (C:\cygwin\bin) 76 9823 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\Program Files\MIT\Shared Files, keep-rel, no-add-slash) 79 9902 [main] a 1820 normalize_win32_path: c:\Program Files\MIT\Shared Files = normalize_win32_path (c:\Program Files\MIT\Shared Files) 76 9978 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/MIT/Shared Files = conv_to_posix_path (c:\Program Files\MIT\Shared Files) 77 10055 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\Program Files\AFS\, keep-rel, add-slash) 75 10130 [main] a 1820 normalize_win32_path: c:\Program Files\AFS\ = normalize_win32_path (c:\Program Files\AFS\) 76 10206 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/AFS/ = conv_to_posix_path (c:\Program Files\AFS\) 77 10283 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\Program Files\Kerberos\, keep-rel, add-slash) 76 10359 [main] a 1820 normalize_win32_path: c:\Program Files\Kerberos\ = normalize_win32_path (c:\Program Files\Kerberos\) 75 10434 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/Kerberos/ = conv_to_posix_path (c:\Program Files\Kerberos\) 76 10510 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\Program Files\MIT\Shared Files\, keep-rel, add-slash) 76 10586 [main] a 1820 normalize_win32_path: c:\Program Files\MIT\Shared Files\ = normalize_win32_path (c:\Program Files\MIT\Shared Files\) 76 10662 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/MIT/Shared Files/ = conv_to_posix_path (c:\Program Files\MIT\Shared Files\) 77 10739 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\Program Files\MIT\EventSyslogger\, keep-rel, add-slash) 78 10817 [main] a 1820 normalize_win32_path: c:\Program Files\MIT\EventSyslogger\ = normalize_win32_path (c:\Program Files\MIT\EventSyslogger\) 76 10893 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/MIT/EventSyslogger/ = conv_to_posix_path (c:\Program Files\MIT\EventSyslogger\) 77 10970 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\program files\reflection, keep-rel, no-add-slash) 75 11045 [main] a 1820 normalize_win32_path: c:\program files\reflection = normalize_win32_path (c:\program files\reflection) 75 11120 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/program files/reflection = conv_to_posix_path (c:\program files\reflection) 77 11197 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\WINNT\system32, keep-rel, no-add-slash) 78 11275 [main] a 1820 normalize_win32_path: c:\WINNT\system32 = normalize_win32_path (c:\WINNT\system32) 74 11349 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/WINNT/system32 = conv_to_posix_path (c:\WINNT\system32) 75 11424 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\WINNT, keep-rel, no-add-slash) 90 11514 [main] a 1820 normalize_win32_path: c:\WINNT = normalize_win32_path (c:\WINNT) 76 11590 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/WINNT = conv_to_posix_path (c:\WINNT) 76 11666 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\WINNT\system32\wbem, keep-rel, no-add-slash) 77 11743 [main] a 1820 normalize_win32_path: c:\WINNT\system32\wbem = normalize_win32_path (c:\WINNT\system32\wbem) 75 11818 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/WINNT/system32/wbem = conv_to_posix_path (c:\WINNT\system32\wbem) 76 11894 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\program files\resource kit\, keep-rel, add-slash) 75 11969 [main] a 1820 normalize_win32_path: c:\program files\resource kit\ = normalize_win32_path (c:\program files\resource kit\) 76 12045 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/program files/resource kit/ = conv_to_posix_path (c:\program files\resource kit\) 76 12121 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\program files\support tools\, keep-rel, add-slash) 77 12198 [main] a 1820 normalize_win32_path: c:\program files\support tools\ = normalize_win32_path (c:\program files\support tools\) 75 12273 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/program files/support tools/ = conv_to_posix_path (c:\program files\support tools\) 76 12349 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\program files\msi2xml\, keep-rel, add-slash) 75 12424 [main] a 1820 normalize_win32_path: c:\program files\msi2xml\ = normalize_win32_path (c:\program files\msi2xml\) 75 12499 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/program files/msi2xml/ = conv_to_posix_path (c:\program files\msi2xml\) 76 12575 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\program files\maestro.nt\, keep-rel, add-slash) 76 12651 [main] a 1820 normalize_win32_path: c:\program files\maestro.nt\ = normalize_win32_path (c:\program files\maestro.nt\) 75 12726 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/program files/maestro.nt/ = conv_to_posix_path (c:\program files\maestro.nt\) 75 12801 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin\bin, keep-rel, no-add-slash) 74 12875 [main] a 1820 normalize_win32_path: C:\cygwin\bin = normalize_win32_path (C:\cygwin\bin) 74 12949 [main] a 1820 mount_info::conv_to_posix_path: /usr/bin = conv_to_posix_path (C:\cygwin\bin) 75 13024 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\Program Files\Maestro.nt\, keep-rel, add-slash) 76 13100 [main] a 1820 normalize_win32_path: c:\Program Files\Maestro.nt\ = normalize_win32_path (c:\Program Files\Maestro.nt\) 76 13176 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/Maestro.nt/ = conv_to_posix_path (c:\Program Files\Maestro.nt\) 76 13252 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\Program Files\Maestro.nt\, keep-rel, add-slash) 75 13327 [main] a 1820 normalize_win32_path: c:\Program Files\Maestro.nt\ = normalize_win32_path (c:\Program Files\Maestro.nt\) 75 13402 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/Maestro.nt/ = conv_to_posix_path (c:\Program Files\Maestro.nt\) 77 13479 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\Program Files\Hummingbird\Connectivity\7.11\Accessories\, keep-rel, add-slash) 78 13557 [main] a 1820 normalize_win32_path: c:\Program Files\Hummingbird\Connectivity\7.11\Accessories\ = normalize_win32_path (c:\Program Files\Hummingbird\Connectivity\7.11\Accessories\) 78 13635 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/Hummingbird/Connectivity/7.11/Accessories/ = conv_to_posix_path (c:\Program Files\Hummingbird\Connectivity\7.11\Accessories\) 79 13714 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\Program Files\Hummingbird\Connectivity\7.11\NFSClient, keep-rel, no-add-slash) 84 13798 [main] a 1820 normalize_win32_path: c:\Program Files\Hummingbird\Connectivity\7.11\NFSClient = normalize_win32_path (c:\Program Files\Hummingbird\Connectivity\7.11\NFSClient) 80 13878 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/Hummingbird/Connectivity/7.11/NFSClient = conv_to_posix_path (c:\Program Files\Hummingbird\Connectivity\7.11\NFSClient) 209 14087 [main] a 1820 win_env::add_cache: posix /usr/local/bin:/usr/bin:/usr/bin:/cygdrive/c/Program Files/MIT/Shared Files:/cygdrive/c/Program Files/AFS/:/cygdrive/c/Program Files/Kerberos/:/cygdrive/c/Program Files/MIT/Shared Files/:/cygdrive/c/Program Files/MIT/EventSyslogger/:/cygdrive/c/program files/reflection:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/system32/wbem:/cygdrive/c/program files/resource kit/:/cygdrive/c/program files/support tools/:/cygdrive/c/program files/msi2xml/:/cygdrive/c/program files/maestro.nt/:/usr/bin:/cygdrive/c/Program Files/Maestro.nt/:/cygdrive/c/Program Files/Maestro.nt/:/cygdrive/c/Program Files/Hummingbird/Connectivity/7.11/Accessories/:/cygdrive/c/Program Files/Hummingbird/Connectivity/7.11/NFSClient 109 14196 [main] a 1820 win_env::add_cache: native PATH=C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\cygwin\bin;c:\Program Files\MIT\Shared Files;c:\Program Files\AFS\;c:\Program Files\Kerberos\;c:\Program Files\MIT\Shared Files\;c:\Program Files\MIT\EventSyslogger\;c:\program files\reflection;c:\WINNT\system32;c:\WINNT;c:\WINNT\system32\wbem;c:\program files\resource kit\;c:\program files\support tools\;c:\program files\msi2xml\;c:\program files\maestro.nt\;C:\cygwin\bin;c:\Program Files\Maestro.nt\;c:\Program Files\Maestro.nt\;c:\Program Files\Hummingbird\Connectivity\7.11\Accessories\;c:\Program Files\Hummingbird\Connectivity\7.11\NFSClient 94 14290 [main] a 1820 posify: env var converted to PATH=/usr/local/bin:/usr/bin:/usr/bin:/cygdrive/c/Program Files/MIT/Shared Files:/cygdrive/c/Program Files/AFS/:/cygdrive/c/Program Files/Kerberos/:/cygdrive/c/Program Files/MIT/Shared Files/:/cygdrive/c/Program Files/MIT/EventSyslogger/:/cygdrive/c/program files/reflection:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/system32/wbem:/cygdrive/c/program files/resource kit/:/cygdrive/c/program files/support tools/:/cygdrive/c/program files/msi2xml/:/cygdrive/c/program files/maestro.nt/:/usr/bin:/cygdrive/c/Program Files/Maestro.nt/:/cygdrive/c/Program Files/Maestro.nt/:/cygdrive/c/Program Files/Hummingbird/Connectivity/7.11/Accessories/:/cygdrive/c/Program Files/Hummingbird/Connectivity/7.11/NFSClient 157 14447 [main] a 1820 environ_init: 0xA010DE8: PATH=/usr/local/bin:/usr/bin:/usr/bin:/cygdrive/c/Program Files/MIT/Shared Files:/cygdrive/c/Program Files/AFS/:/cygdrive/c/Program Files/Kerberos/:/cygdrive/c/Program Files/MIT/Shared Files/:/cygdrive/c/Program Files/MIT/EventSyslogger/:/cygdrive/c/program files/reflection:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/system32/wbem:/cygdrive/c/program files/resource kit/:/cygdrive/c/program files/support tools/:/cygdrive/c/program files/msi2xml/:/cygdrive/c/program files/maestro.nt/:/usr/bin:/cygdrive/c/Program Files/Maestro.nt/:/cygdrive/c/Program Files/Maestro.nt/:/cygdrive/c/Program Files/Hummingbird/Connectivity/7.11/Accessories/:/cygdrive/c/Program Files/Hummingbird/Connectivity/7.11/NFSClient 166 14613 [main] a 1820 environ_init: 0xA010B88: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PL 131 14744 [main] a 1820 environ_init: 0xA010BD0: PISMERE_VERSION=0.1.0 131 14875 [main] a 1820 environ_init: 0xA010BF0: PROCESSOR_ARCHITECTURE=x86 131 15006 [main] a 1820 environ_init: 0xA010C10: PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 6, GenuineIntel 130 15136 [main] a 1820 environ_init: 0xA010C58: PROCESSOR_LEVEL=6 131 15267 [main] a 1820 environ_init: 0xA010C70: PROCESSOR_REVISION=0806 129 15396 [main] a 1820 environ_init: 0xA010C90: PROGRAMFILES=C:\Program Files 139 15535 [main] a 1820 environ_init: 0xA010CB8: PROMPT=$P$G 131 15666 [main] a 1820 environ_init: 0xA010CC8: PS1=\[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ 131 15797 [main] a 1820 environ_init: 0xA010D10: PWD=/home/davie/tests/fork 127 15924 [main] a 1820 environ_init: 0xA010D30: SHLVL=1 128 16052 [main] a 1820 environ_init: 0xA010D40: SYSTEMDRIVE=C: 128 16180 [main] a 1820 environ_init: 0xA010D58: SYSTEMROOT=C:\WINNT 129 16309 [main] a 1820 getwinenv: can't set native for TEMP= since no environ yet 133 16442 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\DOCUME~1\davie\LOCALS~1\Temp, no-keep-rel, no-add-slash) 76 16518 [main] a 1820 normalize_win32_path: c:\DOCUME~1\davie\LOCALS~1\Temp = normalize_win32_path (c:\DOCUME~1\davie\LOCALS~1\Temp) 76 16594 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/DOCUME~1/davie/LOCALS~1/Temp = conv_to_posix_path (c:\DOCUME~1\davie\LOCALS~1\Temp) 192 16786 [main] a 1820 win_env::add_cache: posix /cygdrive/c/DOCUME~1/davie/LOCALS~1/Temp 71 16857 [main] a 1820 win_env::add_cache: native TEMP=c:\DOCUME~1\davie\LOCALS~1\Temp 73 16930 [main] a 1820 posify: env var converted to TEMP=/cygdrive/c/DOCUME~1/davie/LOCALS~1/Temp 128 17058 [main] a 1820 environ_init: 0xA011708: TEMP=/cygdrive/c/DOCUME~1/davie/LOCALS~1/Temp 131 17189 [main] a 1820 environ_init: 0xA010DD0: TERM=cygwin 130 17319 [main] a 1820 getwinenv: can't set native for TMP= since no environ yet 129 17448 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (c:\DOCUME~1\davie\LOCALS~1\Temp, no-keep-rel, no-add-slash) 74 17522 [main] a 1820 normalize_win32_path: c:\DOCUME~1\davie\LOCALS~1\Temp = normalize_win32_path (c:\DOCUME~1\davie\LOCALS~1\Temp) 78 17600 [main] a 1820 mount_info::conv_to_posix_path: /cygdrive/c/DOCUME~1/davie/LOCALS~1/Temp = conv_to_posix_path (c:\DOCUME~1\davie\LOCALS~1\Temp) 250 17850 [main] a 1820 win_env::add_cache: posix /cygdrive/c/DOCUME~1/davie/LOCALS~1/Temp 73 17923 [main] a 1820 win_env::add_cache: native TMP=c:\DOCUME~1\davie\LOCALS~1\Temp 73 17996 [main] a 1820 posify: env var converted to TMP=/cygdrive/c/DOCUME~1/davie/LOCALS~1/Temp 129 18125 [main] a 1820 environ_init: 0xA011848: TMP=/cygdrive/c/DOCUME~1/davie/LOCALS~1/Temp 130 18255 [main] a 1820 environ_init: 0xA010D70: USER=davie 126 18381 [main] a 1820 environ_init: 0xA010D80: USERDOMAIN=WIN 128 18509 [main] a 1820 environ_init: 0xA0119B0: USERNAME=davie 241 18750 [main] a 1820 environ_init: 0xA0119C8: USERPROFILE=C:\Documents and Settings\davie 137 18887 [main] a 1820 environ_init: 0xA0119F8: VCOSDIR=WINNT 130 19017 [main] a 1820 environ_init: 0xA011A10: VSCOMMONDIR=C:\Program Files\Microsoft Visual Studio\Common 131 19148 [main] a 1820 environ_init: 0xA011A50: WINDIR=C:\WINNT 128 19276 [main] a 1820 environ_init: 0xA011A68: _=/usr/bin/strace 136 19412 [main] a 1820 pinfo_init: pid 1820, pgid 1820 154 19566 [main] a 1820 dtable::extend: size 32, fds 0x61560128 852 20418 [main] a 1820 internal_getlogin: GetUserName() = davie 189 20607 [main] a 1820 internal_getlogin: User: davie, Domain: WIN, Logon Server: DIN 79 20686 [main] a 1820 internal_getlogin: Domain: WIN, Logon Server: DIN, Windows Username: davie 140 20826 [main] a 1820 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio (0) 84 20910 [main] a 1820 _cygwin_istext_for_stdio: _cifs: fd not open 77 20987 [main] a 1820 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio (1) 74 21061 [main] a 1820 _cygwin_istext_for_stdio: _cifs: fd not open 72 21133 [main] a 1820 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio (2) 71 21204 [main] a 1820 _cygwin_istext_for_stdio: _cifs: fd not open 83 21287 [main] a 1820 _open: open (/etc/passwd, 0x20000) 104 21391 [main] a 1820 normalize_posix_path: src /etc/passwd 82 21473 [main] a 1820 normalize_posix_path: /etc/passwd = normalize_posix_path (/etc/passwd) 96 21569 [main] a 1820 mount_info::conv_to_win32_path: conv_to_win32_path (/etc/passwd) 84 21653 [main] a 1820 mount_info::conv_to_win32_path: src_path /etc/passwd, dst C:\cygwin\etc\passwd, flags 0xA, rc 0 364 22017 [main] a 1820 symlink_info::check: not a symlink 110 22127 [main] a 1820 symlink_info::check: 0 = symlink.check (C:\cygwin\etc\passwd, 0x22E7A0) (0xA) 79 22206 [main] a 1820 path_conv::check: root_dir(C:\), this->path(C:\cygwin\etc\passwd), set_has_acls(8) 97 22303 [main] a 1820 dtable::build_fhandler: fd 3, fh 0x615602C8 76 22379 [main] a 1820 fhandler_base::open: (C:\cygwin\etc\passwd, 0x20000) 136 22515 [main] a 1820 fhandler_base::open: 0xC4 = CreateFileA (C:\cygwin\etc\passwd, 0x80000000, 0x7, 0x22EBE0, 0x3, 0x80, 0) 89 22604 [main] a 1820 fhandler_base::open: filemode set to text 83 22687 [main] a 1820 fhandler_base::open: 1 = fhandler_base::open (C:\cygwin\etc\passwd, 0x20000) 76 22763 [main] a 1820 fhandler_disk_file::open: 1 = fhandler_disk_file::open (C:\cygwin\etc\passwd, 0x20000) 77 22840 [main] a 1820 _open: 3 = open (/etc/passwd, 0x20000) 74 22914 [main] a 1820 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio (3) 74 22988 [main] a 1820 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio says yes 110 23098 [main] a 1820 fhandler_disk_file::fstat_helper: 1 = GetFileInformationByHandle (C:\cygwin\etc\passwd, 196) 166 23264 [main] a 1820 fhandler_disk_file::fstat_helper: 0 = fstat (, 0x22EF60) st_atime=3CFBB13B st_size=827, st_mode=0x81A4, st_ino=334985, sizeof=64 90 23354 [main] a 1820 _fstat: 0 = fstat (3, 0x22EF60) 80 23434 [main] a 1820 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio (3) 72 23506 [main] a 1820 _cygwin_istext_for_stdio: _cifs: get_*_binary 73 23579 [main] a 1820 setmode_helper: setmode: file was cle now raw 73 23652 [main] a 1820 setmode: setmode (3</etc/passwd>, binary) returns text 83 23735 [main] a 1820 _read: read (3, 0xA011BF0, 1024) blocking, sigcatchers 0 74 23809 [main] a 1820 _read: non-interruptible read 87 23896 [main] a 1820 fhandler_base::read: returning 827 chars, binary mode 74 23970 [main] a 1820 _read: 827 = read (3, 0xA011BF0, 1024), errno 0 74 24044 [main] a 1820 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio (3) 71 24115 [main] a 1820 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio says yes 73 24188 [main] a 1820 setmode_helper: setmode: file was raw now cle 70 24258 [main] a 1820 setmode: setmode (3</etc/passwd>, text) returns binary 630 24888 [main] a 1820 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio (3) 74 24962 [main] a 1820 _cygwin_istext_for_stdio: _cifs: get_*_binary 71 25033 [main] a 1820 setmode_helper: setmode: file was cle now raw 73 25106 [main] a 1820 setmode: setmode (3</etc/passwd>, binary) returns text 72 25178 [main] a 1820 _read: read (3, 0xA011BF0, 1024) blocking, sigcatchers 0 74 25252 [main] a 1820 _read: non-interruptible read 76 25328 [main] a 1820 _read: 0 = read (3, 0xA011BF0, 1024), errno 0 74 25402 [main] a 1820 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio (3) 71 25473 [main] a 1820 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio says yes 73 25546 [main] a 1820 setmode_helper: setmode: file was raw now cle 71 25617 [main] a 1820 setmode: setmode (3</etc/passwd>, text) returns binary 144 25761 [main] a 1820 _close: close (3) 75 25836 [main] a 1820 fhandler_base::close: closing '/etc/passwd' handle 0xC4 106 25942 [main] a 1820 _close: 0 = close (3) 102 26044 [main] a 1820 normalize_posix_path: src /etc 76 26120 [main] a 1820 normalize_posix_path: /etc = normalize_posix_path (/etc) 77 26197 [main] a 1820 mount_info::conv_to_win32_path: conv_to_win32_path (/etc) 82 26279 [main] a 1820 mount_info::conv_to_win32_path: src_path /etc, dst C:\cygwin\etc, flags 0xA, rc 0 265 26544 [main] a 1820 symlink_info::check: not a symlink 114 26658 [main] a 1820 symlink_info::check: 0 = symlink.check (C:\cygwin\etc, 0x22EDF0) (0xA) 84 26742 [main] a 1820 path_conv::check: root_dir(C:\), this->path(C:\cygwin\etc), set_has_acls(8) 376 27118 [main] a 1820 internal_getlogin: Cygwins Username: davie 261 27379 [main] a 1820 sigproc_init: process/signal handling enabled(1) 437 27816 [main] a 1820 build_argv: argv[0] = 'a.exe' 85 27901 [main] a 1820 build_argv: argc 1 327 28228 [sig] a 1820 wait_sig: sigcatch_nonmain 0xD4, sigcatch_main 0xDC 102 28330 [sig] a 1820 wait_sig: Ready. dwProcessid 1820 289 28619 [main] a 1820 normalize_posix_path: src /dev/conin 110 28729 [main] a 1820 normalize_posix_path: /dev/conin = normalize_posix_path (/dev/conin) 90 28819 [main] a 1820 mount_info::conv_to_win32_path: conv_to_win32_path (/dev/conin) 90 28909 [main] a 1820 mount_info::conv_to_win32_path: src_path /dev/conin, dst conin, flags 0x2, rc 0 2599 31508 [main] a 1820 dtable::build_fhandler: fd 0, fh 0x615603C0 231 31739 [main] a 1820 fhandler_base::init: created new fhandler_base for handle 0xB 136 31875 [main] a 1820 open_shared: name (null), shared 0x1A680000 (wanted 0x0), h 0xFC 108 31983 [main] a 1820 tty_min::set_ctty: attached tty1073741824 sid 1820, pid 1820, tty->pgid 0, tty->sid 1820 90 32073 [main] a 1820 tty_min::set_ctty: resetting tty1073741824 sid. Was 1820, now 1820. pgid was 0, now 1820. 211 32284 [main] a 1820 fhandler_console::open: opened conin$ 0xF, conout$ 0x13 114 32398 [main] a 1820 fhandler_console::output_tcsetattr: 0 = tcsetattr (,1A680018) (ENABLE FLAGS 3) (lflag 107 oflag 9) 90 32488 [main] a 1820 dtable::init_std_file_from_handle: fd 0, handle 0xB 156 32644 [main] a 1820 normalize_posix_path: src unknown disk file 107 32751 [main] a 1820 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin\home\davie\tests\fork, no-keep-rel, no-add-slash) 94 32845 [main] a 1820 normalize_win32_path: C:\cygwin\home\davie\tests\fork = normalize_win32_path (C:\cygwin\home\davie\tests\fork) 89 32934 [main] a 1820 mount_info::conv_to_posix_path: /home/davie/tests/fork = conv_to_posix_path (C:\cygwin\home\davie\tests\fork) 88 33022 [main] a 1820 cwdstuff::get: posix /home/davie/tests/fork 84 33106 [main] a 1820 cwdstuff::get: (/home/davie/tests/fork) = cwdstuff::get (0x22F950, 260, 1, 0), errno 0 87 33193 [main] a 1820 normalize_posix_path: /home/davie/tests/fork/unknown disk file = normalize_posix_path (unknown disk file) 86 33279 [main] a 1820 mount_info::conv_to_win32_path: conv_to_win32_path (/home/davie/tests/fork/unknown disk file) 95 33374 [main] a 1820 mount_info::conv_to_win32_path: src_path /home/davie/tests/fork/unknown disk file, dst C:\cygwin\home\davie\tests\fork\unknown disk file, flags 0xA, rc 0 392 33766 [main] a 1820 symlink_info::check: GetFileAttributes (C:\cygwin\home\davie\tests\fork\unknown disk file) failed 123 33889 [main] a 1820 geterrno_from_win_error: windows error 2 == errno 2 135 34024 [main] a 1820 symlink_info::check: GetFileAttributes (C:\cygwin\home\davie\tests\fork\unknown disk file.lnk) failed 98 34122 [main] a 1820 geterrno_from_win_error: windows error 2 == errno 2 82 34204 [main] a 1820 symlink_info::check: 0 = symlink.check (C:\cygwin\home\davie\tests\fork\unknown disk file, 0x22F610) (0xA) 92 34296 [main] a 1820 mount_info::conv_to_win32_path: conv_to_win32_path (/home/davie/tests/fork) 90 34386 [main] a 1820 mount_info::conv_to_win32_path: src_path /home/davie/tests/fork, dst C:\cygwin\home\davie\tests\fork, flags 0xA, rc 0 133 34519 [main] a 1820 symlink_info::check: not a symlink 92 34611 [main] a 1820 symlink_info::check: 0 = symlink.check (C:\cygwin\home\davie\tests\fork, 0x22F610) (0xA) 86 34697 [main] a 1820 path_conv::check: root_dir(C:\), this->path(C:\cygwin\home\davie\tests\fork\unknown disk file), set_has_acls(8) 95 34792 [main] a 1820 dtable::build_fhandler: fd 1, fh 0x615602C8 111 34903 [main] a 1820 fhandler_base::init: created new fhandler_base for handle 0xB8 117 35020 [main] a 1820 dtable::init_std_file_from_handle: fd 1, handle 0xB8 107 35127 [main] a 1820 normalize_posix_path: src /dev/conout 85 35212 [main] a 1820 normalize_posix_path: /dev/conout = normalize_posix_path (/dev/conout) 83 35295 [main] a 1820 mount_info::conv_to_win32_path: conv_to_win32_path (/dev/conout) 87 35382 [main] a 1820 mount_info::conv_to_win32_path: src_path /dev/conout, dst conout, flags 0x2, rc 0 114 35496 [main] a 1820 dtable::build_fhandler: fd 2, fh 0x61560EC8 86 35582 [main] a 1820 fhandler_base::init: created new fhandler_base for handle 0x17 172 35754 [main] a 1820 fhandler_console::open: opened conin$ 0xB, conout$ 0x2B 106 35860 [main] a 1820 fhandler_console::output_tcsetattr: 0 = tcsetattr (,1A680018) (ENABLE FLAGS 3) (lflag 107 oflag 9) 87 35947 [main] a 1820 dtable::init_std_file_from_handle: fd 2, handle 0x17 83 36030 [main] a 1820 dll_list::init: here 81 36111 [main] a 1820 dll_crt0_1: user_data->main 0x401084 102 36213 [main] a 1820 sig_send: pid 1820, signal -2, its_me 1 91 36304 [sig] a 1820 wait_sig: awake 81 36385 [sig] a 1820 wait_sig: processing signal -2 74 36459 [sig] a 1820 wait_sig: set main thread completion event 70 36529 [sig] a 1820 wait_sig: looping 83 36612 [main] a 1820 sig_send: Waiting for thiscomplete 0xE8 84 36696 [main] a 1820 sig_send: returning 0 from sending signal -2 4540 41236 [main] a 1820 wsock_init: res 0 237 41473 [main] a 1820 wsock_init: wVersion 514 88 41561 [main] a 1820 wsock_init: wHighVersion 514 258 41819 [main] a 1820 wsock_init: szDescription WinSock 2.0 101 41920 [main] a 1820 wsock_init: szSystemStatus Running 89 42009 [main] a 1820 wsock_init: iMaxSockets 0 82 42091 [main] a 1820 wsock_init: iMaxUdpDg 0 83 42174 [main] a 1820 wsock_init: lpVendorInfo 0 3256 45430 [main] a 1820 fdsock: not setting socket inheritance since winsock2_active 1 220 45650 [main] a 1820 dtable::build_fhandler: fd 3, fh 0x61561720 90 45740 [main] a 1820 fdsock: fd 3, name '/dev/streamsocket', soc 0x128 92 45832 [main] a 1820 fdsock: not setting socket inheritance since winsock2_active 1 90 45922 [main] a 1820 dtable::build_fhandler: fd 4, fh 0x61561A68 84 46006 [main] a 1820 fdsock: fd 4, name '/dev/streamsocket', soc 0x11C 85 46091 [main] a 1820 socketpair: 0 = socketpair (...) 91 46182 [main] a 1820 fork: entering 208 46390 [main] a 1820 subproc_init: started wait_subproc thread 0x118 174 46564 [main] a 1820 stack_base: bottom 0x230000, top 0x30000, stack 0x22F814, size 2028, reserve 2097152 94 46658 [main] a 1820 fork_parent: CreateProcess (C:\cygwin\home\davie\tests\fork\a.exe, C:\cygwin\home\davie\tests\fork\a.exe, 0, 0, 1, 24, 0, 0, 0x22FC84, 0x22FCD4) 895 47553 [main] a 1820 dtable::fixup_before_fork: fd 0 (/dev/conin) 229 47782 [main] a 1820 dtable::fixup_before_fork: fd 1 (unknown disk file) 96 47878 [main] a 1820 dtable::fixup_before_fork: fd 2 (/dev/conout) 84 47962 [main] a 1820 dtable::fixup_before_fork: fd 3 (/dev/streamsocket) 638 48600 [proc] a 1820 wait_subproc: starting 3004 51604 [main] a 1820 fhandler_socket::fixup_before_fork_exec: WSADuplicateSocket went fine, sock 0x128, win_proc_id 1944, prot_info_ptr 0x615617A8 185 51789 [main] a 1820 dtable::fixup_before_fork: fd 4 (/dev/streamsocket) 131 51920 [main] a 1820 fhandler_socket::fixup_before_fork_exec: WSADuplicateSocket went fine, sock 0x11C, win_proc_id 1944, prot_info_ptr 0x61561AF0 4716 56636 [main] a 1820 proc_subproc: args: 1, 2291828 191 56827 [main] a 1820 proc_subproc: added pid 1944 to wait list, slot 0, winpid 0x798, handle 0x140 106 56933 [proc] a 1820 wait_subproc: looping 108 57041 [main] a 1820 proc_subproc: returning 1 96 57137 [main] a 1820 sync_with_child: waiting for child. reason: waiting for longjmp, hang_child 1 ********************************************** Program name: C:\cygwin\home\davie\tests\fork\a.exe (1944) App version: 1003.10, api: 0.51 DLL version: 1003.10, api: 0.51 DLL build: 2002-02-25 11:14 OS version: Windows NT-5.0 Date/Time: 2002-06-03 14:13:36 ********************************************** 139 1259 [main] a 1944 open_shared: name shared, shared 0xA000000 (wanted 0xA000000), h 0x48 1192 2451 [main] a 1944 heap_init: heap base 0xA010000, heap top 0xA013000 230 2681 [main] a 1944 open_shared: name davie, shared 0x410000 (wanted 0x0), h 0x8C 89 2770 [main] a 1944 memory_init: opening mount table for 'davie' at 0xA010000 85 2855 [main] a 1944 memory_init: mount table version 41FB at 0x410000 132 2987 [main] a 1944 events_init: windows_system_directory 'C:\WINNT\System32\', windows_system_directory_length 18 88 3075 [main] a 1944 events_init: cygwin_hmodule 0x61000000 219 3294 [main] a 1944 fork_child: child is running. pid 1944, ppid 1820, stack here 0x22FCF4 222 3516 [main] a 1944 fork_child: Impersonation of child, token: -1 103 3619 [main] a 1944 sync_with_parent: signalling parent: after longjmp. 3148 60285 [main] a 1820 sync_with_child: child signalled me 90 60375 [main] a 1820 fork_parent: child is alive (but stopped) 136 60511 [main] a 1820 fork_copy: child handle 0x140, low 0x402000, high 0x402014, res 1 92 60603 [main] a 1820 fork_copy: child handle 0x140, low 0x403000, high 0x40300C, res 1 161 60764 [main] a 1820 fork_copy: child handle 0x140, low 0xA010000, high 0xA013000, res 1 110 60874 [main] a 1820 fork_copy: child handle 0x140, low 0x22FD0C, high 0x230000, res 1 201 61075 [main] a 1820 fork_copy: child handle 0x140, low 0x610A0000, high 0x610A4370, res 1 1441 62516 [main] a 1820 fork_copy: child handle 0x140, low 0x610C0000, high 0x610F6410, res 1 290 62806 [main] a 1820 fork_copy: done 102 62908 [main] a 1820 resume_child: signalled child 80 62988 [main] a 1820 sync_with_child: waiting for child. reason: child loading dlls, hang_child 0 59503 63122 [main] a 1944 sync_with_parent: awake 97 63219 [main] a 1944 sync_with_parent: no problems 75 63294 [main] a 1944 fork_child: hParent 0x130, child 1 first_dll 0x0, load_dlls 0 101 63395 [main] a 1944 set_file_api_mode: File APIs set to ANSI 93 63488 [main] a 1944 dtable::fixup_after_fork: fd 0 (/dev/conin) 113 63601 [main] a 1944 open_shared: name (null), shared 0x420000 (wanted 0x0), h 0xFC 228 63829 [main] a 1944 fhandler_console::open: opened conin$ 0x17, conout$ 0x2F 118 63947 [main] a 1944 dtable::fixup_after_fork: fd 2 (/dev/conout) 151 64098 [main] a 1944 fhandler_console::open: opened conin$ 0xF, conout$ 0x13 97 64195 [main] a 1944 dtable::fixup_after_fork: fd 3 (/dev/streamsocket) 78 64273 [main] a 1944 fhandler_socket::fixup_after_fork: WSASocket begin, dwServiceFlags1=131174 4064 68337 [main] a 1944 wsock_init: res 0 221 68558 [main] a 1944 wsock_init: wVersion 514 80 68638 [main] a 1944 wsock_init: wHighVersion 514 78 68716 [main] a 1944 wsock_init: szDescription WinSock 2.0 73 68789 [main] a 1944 wsock_init: szSystemStatus Running 74 68863 [main] a 1944 wsock_init: iMaxSockets 0 72 68935 [main] a 1944 wsock_init: iMaxUdpDg 0 69 69004 [main] a 1944 wsock_init: lpVendorInfo 0 4394 73398 [main] a 1944 fhandler_socket::fixup_after_fork: WSASocket went fine new_sock 0xC, old_sock 0x128 165 73563 [main] a 1944 dtable::fixup_after_fork: fd 4 (/dev/streamsocket) 82 73645 [main] a 1944 fhandler_socket::fixup_after_fork: WSASocket begin, dwServiceFlags1=131174 135 73780 [main] a 1944 fhandler_socket::fixup_after_fork: WSASocket went fine new_sock 0x10, old_sock 0x11C 90 73870 [main] a 1944 sync_with_parent: signalling parent: performed fork fixup. 10971 73959 [main] a 1820 sync_with_child: child signalled me 104 74063 [main] a 1820 fork: 1944 = fork() 81 74144 [main] a 1820 get_osfhandle: 284 = get_osfhandle (4) 102 74246 [main] a 1820 get_osfhandle: 296 = get_osfhandle (3) 112 74358 [main] a 1820 fhandler_disk_file::fstat_helper: 1 = GetFileInformationByHandle (C:\cygwin\home\davie\tests\fork\unknown disk file, 184) 104 74462 [main] a 1820 fhandler_disk_file::fstat_helper: 0 = fstat (, 0x22FB44) st_atime=3CFBB1D0 st_size=36995, st_mode=0x81A4, st_ino=1006705201, sizeof=64 82 74544 [main] a 1820 _fstat: 0 = fstat (1, 0x22FB44) 93 74637 [main] a 1820 sleep: sleep (1) 878 74748 [main] a 1944 fixup_mmaps_after_fork: recreate_mmaps_after_fork, mmapped_areas 0x0 83 74831 [main] a 1944 MTinterface::fixup_after_fork: mutexs is 0 74 74905 [main] a 1944 MTinterface::fixup_after_fork: conds is 0 105 75010 [main] a 1944 MTinterface::fixup_after_fork: semaphores is 0 218 75228 [main] a 1944 sigproc_init: process/signal handling enabled(801) 91 75319 [main] a 1944 fork: 0 = fork() 281 75600 [sig] a 1944 wait_sig: sigcatch_nonmain 0x114, sigcatch_main 0x118 105 75705 [sig] a 1944 wait_sig: Ready. dwProcessid 1944 108 75813 [main] a 1944 get_osfhandle: 16 = get_osfhandle (4) 90 75903 [main] a 1944 get_osfhandle: 12 = get_osfhandle (3) 126 76029 [main] a 1944 fhandler_disk_file::fstat_helper: 1 = GetFileInformationByHandle (C:\cygwin\home\davie\tests\fork\unknown disk file, 184) 119 76148 [main] a 1944 fhandler_disk_file::fstat_helper: 0 = fstat (, 0x22FB44) st_atime=3CFBB1D0 st_size=38139, st_mode=0x81A4, st_ino=1006705201, sizeof=64 96 76244 [main] a 1944 _fstat: 0 = fstat (1, 0x22FB44) 102 76346 [main] a 1944 sleep: sleep (1) 994618 1069255 [main] a 1820 sleep: 0 = sleep (1) 230 1069485 [main] a 1820 _write: write (1, 0xA0124B8, 32) 90 1069575 [main] a 1820 fhandler_base::write: text write Parent: Sockets are 0x128 0x11c 94 1069669 [main] a 1820 fhandler_base::write: 32 = write (0xA0124B8, 32) 85 1069754 [main] a 1820 _write: 32 = write (1, 0xA0124B8, 32) 80 1069834 [main] a 1820 do_exit: do_exit (0) 79 1069913 [main] a 1820 void: 0x0 = signal (20, 0x1) 74 1069987 [main] a 1820 void: 0x0 = signal (1, 0x1) 74 1070061 [main] a 1820 void: 0x0 = signal (2, 0x1) 74 1070135 [main] a 1820 void: 0x0 = signal (3, 0x1) 115 1070250 [main] a 1820 fhandler_base::close: closing 'unknown disk file' handle 0xB8 196 1070446 [main] a 1820 fhandler_socket::close: 0 = fhandler_socket::close() 994194 1070540 [main] a 1944 sleep: 0 = sleep (1) 112 1070652 [main] a 1944 _write: write (1, 0xA0124B8, 28) 90 1070742 [main] a 1944 fhandler_base::write: text write Child: Sockets are 0xc 0x10 89 1070831 [main] a 1944 fhandler_base::write: 28 = write (0xA0124B8, 28) 80 1070911 [main] a 1944 _write: 28 = write (1, 0xA0124B8, 28) 77 1070988 [main] a 1944 do_exit: do_exit (0) 75 1071063 [main] a 1944 void: 0x0 = signal (20, 0x1) 75 1071138 [main] a 1944 void: 0x0 = signal (1, 0x1) 76 1071214 [main] a 1944 void: 0x0 = signal (2, 0x1) 908 1071354 [main] a 1820 fhandler_socket::close: 0 = fhandler_socket::close() 107 1071461 [main] a 1820 proc_terminate: nchildren 1, nzombies 0 98 1071559 [proc] a 1820 wait_subproc: looping 90 1071649 [proc] a 1820 wait_subproc: done 268 1071917 [main] a 1820 proc_subproc: args: 3, 1 99 1072016 [main] a 1820 proc_subproc: clear waiting threads 88 1072104 [main] a 1820 proc_subproc: finished clearing 83 1072187 [main] a 1820 proc_subproc: returning 1 85 1072272 [main] a 1820 proc_terminate: 1944(1944) closed child handle 107 1072379 [main] a 1820 proc_terminate: leaving 75 1072454 [main] a 1820 sigproc_terminate: entering 74 1072528 [main] a 1820 sigproc_terminate: done 76 1072604 [main] a 1820 do_exit: 1820 == pgrp 1820, send SIG{HUP,CONT} to stopped children 82 1072686 [main] a 1820 kill_pgrp: pid 1820, signal -1 1935 1073149 [main] a 1944 void: 0x0 = signal (3, 0x1) 187 1073336 [main] a 1944 fhandler_base::close: closing 'unknown disk file' handle 0xB8 982 1074318 [main] a 1944 fhandler_socket::close: 0 = fhandler_socket::close() 222 1074540 [main] a 1944 fhandler_socket::close: 0 = fhandler_socket::close() 103 1074643 [main] a 1944 proc_terminate: nchildren 0, nzombies 0 88 1074731 [main] a 1944 proc_terminate: leaving 82 1074813 [main] a 1944 sigproc_terminate: entering 83 1074896 [main] a 1944 sigproc_terminate: done 162 1075058 [main] a 1944 __to_clock_t: dwHighDateTime 0, dwLowDateTime 0 78 1075136 [main] a 1944 __to_clock_t: total 00000000 00000000 74 1075210 [main] a 1944 __to_clock_t: dwHighDateTime 0, dwLowDateTime 200288 73 1075283 [main] a 1944 __to_clock_t: total 00000000 00000014 1281 1076564 [main] a 1944 _pinfo::exit: Calling ExitProcess 0 6920 1079606 [main] a 1820 pinfo::init: execed process windows pid 796, cygwin pid 2060 224 1079830 [main] a 1820 pinfo::init: execed process windows pid 1928, cygwin pid 1680 155 1079985 [main] a 1820 pinfo::init: execed process windows pid 1276, cygwin pid 1836 141 1080126 [main] a 1820 pinfo::init: execed process windows pid 1940, cygwin pid 916 138 1080264 [main] a 1820 pinfo::init: execed process windows pid 1912, cygwin pid 292 130 1080394 [main] a 1820 pinfo::init: execed process windows pid 1844, cygwin pid 1620 157 1080551 [main] a 1820 kill_pgrp: -1 = kill (1820, -1) 389 1080940 [main] a 1820 __to_clock_t: dwHighDateTime 0, dwLowDateTime 300432 87 1081027 [main] a 1820 __to_clock_t: total 00000000 0000001E 84 1081111 [main] a 1820 __to_clock_t: dwHighDateTime 0, dwLowDateTime 200288 82 1081193 [main] a 1820 __to_clock_t: total 00000000 00000014 1222 1082415 [main] a 1820 _pinfo::exit: Calling ExitProcess 0 -- 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/