delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/06/06:09:52

From: daltoe AT athena DOT polito DOT it (Riccardo D'Altoe')
Subject: Re: sockets and fork() under b18 coolview
6 Feb 1998 06:09:52 -0800 :
Message-ID: <34DADD67.2554B388.cygnus.gnu-win32@athena.polito.it>
References: <199701230030 DOT RAA00648 AT tuffy DOT reversion DOT ca>
Mime-Version: 1.0
To: Craig Nelson <craig AT reversion DOT ca>
Cc: gnu-win32 AT cygnus DOT com

This is a cryptographically signed message in MIME format.

--------------msB247B1D181D1B230550690C7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



Craig Nelson wrote:

> I am having trouble with a socket request server under win95.
>
> If I write a program to handle incoming socket requests, one at a time, the
> program runs beautiful.  however, if I modify the program to use fork() to
> process each socket request, the program dumps, reporting that the stack is
> probably corrupted.
>
> I've tried to narrow the problem down using a small test case program, and that
> also runs fine with, or without fork().  But using the original program under
> every other unix works flawlessly as well (even purified).
>
> My theory is this:
>
>         -Because the original program runs fine with unix, i will assume its ok.
>
>         -Because the original program runs fine when used on gnu-win32 without
>          fork(), i will continue to assume that it's ok.
>
>         -The smaller test program only worked because it did not "do enough"
>          other processing for the system to realize that the stack had been
>          corrupted.
>
> And so I conclude that the problem is with fork() under gnu-win32.
>
> Has anyone else experienced this scenario with fork?
>
> I've checked all the archives, FAQs and everything, so this is my last resort.
>
> I would certainly appreciate any help anyone has to offer..
>





 I have had your same problem with the fork() on NT server 4.0
 with the version b17 and b18 of the GCC.
 In my program the fork() gave back -1 every time that I called the chdir(),
 otherwise it worked!!



+----------------------------------------------------------------------+
| D'Altoe' Riccardo                                                    |
+---------------------------------+------------------------------------+
| Politecnico di Torino           | phone:  +39-(0)11-5647090          |
| Dip. Automatica e Informatica   |                                    |
| corso Duca degli Abruzzi, 24    | e-mail: daltoe AT athena DOT polito DOT it    |
| 10129 Torino                    |                                    |
| ITALY                           | fido  : riccardo daltoe 2:334/203  |
+---------------------------------+------------------------------------+


--------------msB247B1D181D1B230550690C7
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIIHtAYJKoZIhvcNAQcCoIIHpTCCB6ECAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC
BjIwggLwMIICWaADAgECAgF9MA0GCSqGSIb3DQEBBAUAMGExCzAJBgNVBAYTAklUMR4wHAYD
VQQKExVQb2xpdGVjbmljbyBkaSBUb3Jpbm8xGDAWBgNVBAsTD0lDRS1URUwgUHJvamVjdDEY
MBYGA1UEAxMPVHJ1c3RGYWN0b3J5IENBMB4XDTk4MDEyMDE5NTY1MFoXDTk4MTIxNDE0MDAw
MFowgYAxCzAJBgNVBAYTAklUMR4wHAYDVQQKExVQb2xpdGVjbmljbyBkaSBUb3Jpbm8xDTAL
BgNVBAsTBENOU0cxGjAYBgNVBAMTEVJpY2NhcmRvIEQnQWx0b2UnMSYwJAYJKoZIhvcNAQkB
FhdkYWx0b2VAYXRoZW5hLnBvbGl0by5pdDBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQDr2NjM
DEyDolA+as13CD1bTb1+TzaY8Z7fRohe4uAL3PWHB6mWj24fyccsbMKPDxMB1ACoGljPoaAc
w7fcM3/vAgMBAAGjgdswgdgwHwYDVR0jBBgwFoAU7ZzeHGBg4OoJ7F9mySe2QSyg5+gwDgYD
VR0PAQH/BAQDAgTwMEwGA1UdEgRFMEOBGXNlY3VyaXR5QGF0aGVuYS5wb2xpdG8uaXSGJmh0
dHA6Ly90cnVzdGZhY3RvcnkucG9saXRvLml0L2NlcnQuY2VyMAwGA1UdEwEB/wQCMAAwEQYJ
YIZIAYb4QgEBBAQDAgCAMDYGCWCGSAGG+EIBDQQpFidDZXJ0aWNhdGUgaXNzdWVkIG9ubHkg
Zm9yIHRlc3QgcHVycG9zZXMwDQYJKoZIhvcNAQEEBQADgYEATEsOdPuyYARpijvnH5uq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wAwEB/zANBgkqhkiG9w0BAQQFAAOB
gQDQPo2ZMm2Si4kmyT0YVKTm7TxV94rOdevf6OyNl2tQir3tTmW404t9Uiow4Hx67XCG6hWA
m/pmAO4hy1/3iSNBpCMXRw7ob0sdPPX9369LLt7HTYORyQkMcWS7czSSuUdS8MFlroy4r2H5
1UT4Pym6xtLZ0divIZPCSBVUgDrmvzGCAUowggFGAgEBMGYwYTELMAkGA1UEBhMCSVQxHjAc
BgNVBAoTFVBvbGl0ZWNuaWNvIGRpIFRvcmlubzEYMBYGA1UECxMPSUNFLVRFTCBQcm9qZWN0
MRgwFgYDVQQDEw9UcnVzdEZhY3RvcnkgQ0ECAX0wCQYFKw4DAhoFAKB9MBgGCSqGSIb3DQEJ
AzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTk4MDIwNjA5NTI0MFowHgYJKoZIhvcN
AQkPMREwDzANBggqhkiG9w0DAgIBKDAjBgkqhkiG9w0BCQQxFgQU9P1PCWLmM21svLZJGMWA
O3cgrocwDQYJKoZIhvcNAQEBBQAEQMVQDoAa+lCGMdjbk079ytGDaqYZeaTFX/Hc7qMX4iz+
XiDr4RSnOVvjuXnFrwqhvu6iHJ6Go+7m0uJDO0WWAU8=
--------------msB247B1D181D1B230550690C7--

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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