delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/07/01/08:41:50

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=p6tGci2i/2Q+lJNr/Czo9aOLqkF2QRC9Y7Zd5NaME4oHUjrp2zPR3
/QKmGRI2ZHawDta8R0P/bOTYqmJxsELTkBPo8+Jmm4HrmLYG7YVaNjP9uSsCQVK5
5SppIrdSNS9NuJmFWHC5MJJ3qc1cNKtGFrhNetNAe9IvNuFo63Hz9Y=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=ZJQaHYd/04CZJVMw0a4julfeJIw=; b=eXUVsXYd736qx3u8fCcDWtvJvsyA
MhG9fmXVrOHjPkn/hkqo8w4BSkTgAPeSV02CSIgTtrB6V+bL00PGI364O49Par4s
edhBGQ2OeFa33xZ+Mh73oRgA+8D71ukcYG3voVDjYvmbRrXH9QaB+tqj2XO/i9Ha
d44zurRNK7hFfFQ=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-95.1 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_BRBL_LASTEXT,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=H*f:sk:322d75d, H*i:sk:322d75d
X-HELO: calimero.vinschen.de
Date: Fri, 1 Jul 2016 14:41:24 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Use of spawnvp function makes console window appear.
Message-ID: <20160701124124.GA16421@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <65d07c575914c634ad9145d25005223a AT mail DOT kylheku DOT com> <322d75d40a801c815572887971a85781 AT mail DOT kylheku DOT com>
MIME-Version: 1.0
In-Reply-To: <322d75d40a801c815572887971a85781@mail.kylheku.com>
User-Agent: Mutt/1.6.1 (2016-04-27)

--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Jun 30 20:38, Kaz Kylheku wrote:
> On 29.06.2016 15:28, Kaz Kylheku wrote:
> > Hi all,
> >=20
> > I've encountered a strange behavior. When a Cygwin C application that is
> > compiled with "-mwindows" tries to spawn another program, that
> > application
> > suddenly gets a console window!
>=20
> I tracked this down to the fhandler_console::need_invisible() call in
> child_info_spawn::worker().
>=20
> Whatever that is supposed to do is not working properly because
> the invisible window is perfectly visible.

Try starting the process detached:

  spawnvp(_P_DETACH, argv[0], argv);


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--k1lZvvs/B4yU6o8G
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXdmT0AAoJEPU2Bp2uRE+g8YIP/Au5RpqaAqmlX01xvIvEmF9Z
YfFTWYDLpHP+skYE/VWoSjQxLHIj/NIe/ulAoePxv5kS5IzIZbm4FbE3FLk04Wnz
fNO3eYxWO20QMJxLuVAddLfwZM7uN7dd1h1Jqv1TIsu68u3TYIurvyBSIbaOLja1
1MhS/HaUkq94JuN2nre3AZoqfSR0raoe5N98DWbfPk4Xx5c3rU3MzUXHBEISWxn7
ndpnigyADhAfp18yK1hSWIu74xbM9k98f+YJACvzuJJEWKkwDkh4o9TubMATNqjY
QCE8y8BxtzFxnxFfcD64Sj9RwkfCbHagQ/cEGLGLYYG4gBrnwO4zHI+eDBVK4Ig0
JWQew5Fiy26xDNLjEi8VTC3jQc5EGPKduNHAdNe8nSitSaRguEoKeSvkGZ4t/jK3
mEGEU5nHv1QVvpMKDOESkD1m+nXc3SRldO/0wGC8oo3EADwPNMBJUu2SSYZ9EVt1
4uXfS55HnRqtj8MwrqFP0kJNrkCJtQfLVhyTneDkfXg60ooHIq5D+PKddt7DwLed
JkSlVdiY5xN8SI/kd9Kbg/kMPr1oyq6FNoeqhOc9j8MB5v+BqfoNylCfcZBJE40X
HnGy1hio8p/ruxCXVbMPdqxnqOowCMQRlbsklqSGUFRZSe6GplM4F3kaExqcef5c
HkrdkydsAQwXzM63gVrw
=uBEW
-----END PGP SIGNATURE-----

--k1lZvvs/B4yU6o8G--

- Raw text -


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