delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/05/05/04:06:14

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,NIXSPAM_IXHASH,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL
X-Spam-Check-By: sourceware.org
From: Rob Burgers <rob DOT burgers AT ericsson DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Date: Sat, 5 May 2012 10:05:42 +0200
Subject: RE: 1.7.13/1.7.14: Issue with command prompt not returning when forking process
Message-ID: <A1960FFE0F9B444B8512E826965B70763A934CE519@ESESSCMS0362.eemea.ericsson.se>
References: <CA+sc5m=cibkV0bs3ewck97JQRnERkEZCVijWohFQiq0Y979Dog AT mail DOT gmail DOT com>
In-Reply-To: <CA+sc5m=cibkV0bs3ewck97JQRnERkEZCVijWohFQiq0Y979Dog@mail.gmail.com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id q45868ID010433

Hi,

The issue I'm raising in here may be related to this post: http://cygwin.com/ml/cygwin/2012-05/msg00081.html
It is the first time I read that something may have changed in this area. This is to me unexpected and it caused us quite some debugging to find out as the relation between the updated kernel release due to installation of new packages and the appearance of the issue were not so obvious.

The example I'm providing in this post is a much simplified version of the actual application. In our application the Launcher (L) process is called from a script and the exit code of the process is needed to determine the next step. Since L never returns until the forked process (S) terminates the exit code will not be available. So running L as a background process doesn't help here.

I also noticed the difference in behaviour between Cygwin and Linux and since it is Cygwin's intention to provide a Linux look and feel on a Windows environment, I wondering if it is meant to be like this. More over: In the 1.7.10 release the behaviour was still identical to Linux.

If the statement in the other post remains, I'm wondering whether it would be possible to make the old-behaviour available e.g. by means of a registry key?

To get back to Earnie's reply, using 'run' makes no difference at all (i.e. it suffers from the exact same issue):

Kernel release 1.7.9 (no delay):
$ date; run java Launcher; date
Fri May  4 16:37:14 WEDT 2012
Fri May  4 16:37:14 WEDT 2012

Kernel release 1.7.13 (2 minute delay):
$ date; run java Launcher; date
Fri, May 04, 2012  3:27:35 PM
Fri, May 04, 2012  3:29:35 PM

Ubuntu 12.04 (no delay):
$ date; java Launcher; date
Sat May  5 09:19:51 CEST 2012
Launching Server
Launched Server
Sat May  5 09:19:51 CEST 2012

Best regards,
Rob

- Raw text -


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