Use of spawnvp function makes console window appear.

Corinna Vinschen
Fri Jul 1 12:41:00 GMT 2016

On Jun 30 20:38, Kaz Kylheku wrote:
> On 29.06.2016 15:28, Kaz Kylheku wrote:
> > Hi all,
> > 
> > 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!
> I tracked this down to the fhandler_console::need_invisible() call in
> child_info_spawn::worker().
> 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 Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <>

More information about the Cygwin mailing list