X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=RsJx1LkVMd7dDFFHhCQ2C8ArYf97c 0/F6nwvftdBhg+semM91BBOacgTB57CfHovabW60z5l8tRCydl29xEHzUN3Rxi1l 29yCJUj46zEWbXO89HGA6THIeQR+0bcF8AG95Vrqln2b/OlRpTpnQF7rZazf4VX8 /DCOXvEIvz3AwE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=GQu0VfpTxKsHrIWT35IF4RVuPu8=; b=dGg mIRcEeQ+72zuITcrjbcrpbIC3+8WT1n2s7odngQIO2t7UrQQikqtfxLByLxHeb8d ul4l+yQEnnptCYO5sbRPUunQ5eU7unhxvGx4oqv+SOiHbmtwjBlTl7PLYnUYH7tG q8EJu8p0B/CacRqcE0sONAX1yDPgeT26CI7DdoAU= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 MIME-Version: 1.0 X-Received: by 10.180.74.162 with SMTP id u2mr15024580wiv.36.1372325751135; Thu, 27 Jun 2013 02:35:51 -0700 (PDT) Date: Thu, 27 Jun 2013 11:35:51 +0200 Message-ID: Subject: Failure with fork() From: Arjen Markus To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Hello, the bug I am reporting here on behalf of Alan Irwin surfaced in the combination wine and Cygwin (Alan summarised it here: http://www.winehq.org/pipermail/wine-devel/2013-June/100328.html). It has to do with the way Cygwin handles forks. The bug can be illustrated with this small program: int main(void) { while(!fork()); return 0; } It is meant to enable infinite forking, but on Cygwin it immediately stops. I tried it on both Cygwin (not via wine but simply Windows 7) and Linux: - On Linux the program continues without any problem - On Cygwin it stops immediately with an error message that the child process terminated unexpectedly with some weird return code. Can anyone shed light on this? This bug is a showstopper for the combination wine and Cygwin. Regards, Arjen -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple