This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Use of spawnvp function makes console window appear.


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

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

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]